BSC-LT / salamandra-7b-instruct-tools-16k

huggingface.co
Total runs: 152
24-hour runs: -4
7-day runs: -21
30-day runs: -22
Model's Last Updated: May 08 2026
text-generation

Introduction of salamandra-7b-instruct-tools-16k

Model Details of salamandra-7b-instruct-tools-16k

WARNING: This is a language model that has undergone instruction tuning for conversational settings that exploit function calling capabilities. It has not been aligned with human preferences. As a result, it may generate outputs that are inappropriate, misleading, biased, or unsafe. These risks can be mitigated through additional post-training stages, which is strongly recommended before deployment in any production system, especially for high-stakes applications.
NOTE: This is a GATED model, intended only for internal and external tests. Do not request access if you have not already contact us and have been given permission to test it. Please write carlos.rodriguez1(at)bsc.es to justify use, and we can grant access.

How to use
from datetime import datetime
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch

model_id = "BSC-LT/salamandra-7b-instruct"

text = "What is the weather like in Paris today?"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype=torch.bfloat16
  )

message = [ { "role": "user", "content": text } ]

tools = [{
    "type": "function",
    "name": "get_weather",
    "description": "Get current temperature for a given location.",
    "parameters": {
        "type": "object",
        "properties": {
            "location": {
                "type": "string",
                "description": "City and country e.g. Bogotá, Colombia"
            }
        },
        "required": [
            "location"
        ],
        "additionalProperties": False
    }
}]


prompt = tokenizer.apply_chat_template(
    message,
    tokenize=False,
    add_generation_prompt=True,
    tools=tools
)

inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=1000)

print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Deploy with vllm

Deploy the model using vllm docker image.

docker run --runtime nvidia --gpus all \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HUGGING_FACE_HUB_TOKEN=<secret>" \
    -p 80:80 \
    vllm/vllm-openai:latest \
    --model BSC-LT/salamandra-7b-instruct-tools \
    --enable-auto-tool-choice \
    --tool-call-parser hermes \
    --max_model_len 8196 \
    --port 80

Then use it with openai api

pip install openai
from openai import OpenAI
client = OpenAI(
        base_url="http://localhost:8080/v1/", 
        api_key="hf_xxxx"
    )

models = client.models.list()
model = models.data[0].id

system_message = ""
messages = [{ "role": "system", "content": system_message}] if system_message else []
messages.append( {"role":"user", "content": "What is the weather like in Paris today?"})
print(messages)
chat_completion = client.chat.completions.create(
    model=model,
    tools=tools
    messages=messages,
    stream=False,
    max_tokens=1000,
    temperature=0.1,
    frequency_penalty=0.2,
)

print(chat_completion)

Runs of BSC-LT salamandra-7b-instruct-tools-16k on huggingface.co

152
Total runs
-4
24-hour runs
-12
3-day runs
-21
7-day runs
-22
30-day runs

More Information About salamandra-7b-instruct-tools-16k huggingface.co Model

More salamandra-7b-instruct-tools-16k license Visit here:

https://choosealicense.com/licenses/apache-2.0

salamandra-7b-instruct-tools-16k huggingface.co

salamandra-7b-instruct-tools-16k huggingface.co is an AI model on huggingface.co that provides salamandra-7b-instruct-tools-16k's model effect (), which can be used instantly with this BSC-LT salamandra-7b-instruct-tools-16k model. huggingface.co supports a free trial of the salamandra-7b-instruct-tools-16k model, and also provides paid use of the salamandra-7b-instruct-tools-16k. Support call salamandra-7b-instruct-tools-16k model through api, including Node.js, Python, http.

salamandra-7b-instruct-tools-16k huggingface.co Url

https://huggingface.co/BSC-LT/salamandra-7b-instruct-tools-16k

BSC-LT salamandra-7b-instruct-tools-16k online free

salamandra-7b-instruct-tools-16k huggingface.co is an online trial and call api platform, which integrates salamandra-7b-instruct-tools-16k's modeling effects, including api services, and provides a free online trial of salamandra-7b-instruct-tools-16k, you can try salamandra-7b-instruct-tools-16k online for free by clicking the link below.

BSC-LT salamandra-7b-instruct-tools-16k online free url in huggingface.co:

https://huggingface.co/BSC-LT/salamandra-7b-instruct-tools-16k

salamandra-7b-instruct-tools-16k install

salamandra-7b-instruct-tools-16k is an open source model from GitHub that offers a free installation service, and any user can find salamandra-7b-instruct-tools-16k on GitHub to install. At the same time, huggingface.co provides the effect of salamandra-7b-instruct-tools-16k install, users can directly use salamandra-7b-instruct-tools-16k installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

salamandra-7b-instruct-tools-16k install url in huggingface.co:

https://huggingface.co/BSC-LT/salamandra-7b-instruct-tools-16k

Url of salamandra-7b-instruct-tools-16k

salamandra-7b-instruct-tools-16k huggingface.co Url

Provider of salamandra-7b-instruct-tools-16k huggingface.co

BSC-LT
ORGANIZATIONS

Other API from BSC-LT

huggingface.co

Total runs: 2.6K
Run Growth: 1.7K
Growth Rate: 67.35%
Updated:October 22 2025
huggingface.co

Total runs: 1.9K
Run Growth: 460
Growth Rate: 23.90%
Updated:October 22 2025
huggingface.co

Total runs: 1.9K
Run Growth: 1.3K
Growth Rate: 69.13%
Updated:October 22 2025
huggingface.co

Total runs: 1.4K
Run Growth: -2.2K
Growth Rate: -162.73%
Updated:April 10 2026
huggingface.co

Total runs: 925
Run Growth: 466
Growth Rate: 50.38%
Updated:March 27 2026
huggingface.co

Total runs: 411
Run Growth: 155
Growth Rate: 37.71%
Updated:August 07 2025
huggingface.co

Total runs: 388
Run Growth: 198
Growth Rate: 51.03%
Updated:October 26 2021
huggingface.co

Total runs: 326
Run Growth: 121
Growth Rate: 37.12%
Updated:April 10 2026
huggingface.co

Total runs: 285
Run Growth: -240
Growth Rate: -84.21%
Updated:April 10 2026
huggingface.co

Total runs: 208
Run Growth: -879
Growth Rate: -422.60%
Updated:April 10 2026
huggingface.co

Total runs: 138
Run Growth: 44
Growth Rate: 31.88%
Updated:April 22 2026
huggingface.co

Total runs: 121
Run Growth: 10
Growth Rate: 8.26%
Updated:October 29 2024
huggingface.co

Total runs: 119
Run Growth: 16
Growth Rate: 13.45%
Updated:September 06 2021
huggingface.co

Total runs: 58
Run Growth: 50
Growth Rate: 86.21%
Updated:September 10 2024