Downloads · 30 days
19
21% of all-time downloads
nitrox/ToolACE-2.5-Llama-3.1-8B-heretic
ToolACE-2.5-Llama-3.1-8B-heretic is a machine learning model from nitrox. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Abliterated version of Team-ACE/ToolACE-2.5-Llama-3.1-8B.
Downloads · 30 days
19
21% of all-time downloads
All-time downloads
91
Public
Parameters
8B
16.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
Abliterated version of Team-ACE/ToolACE-2.5-Llama-3.1-8B.
Base: Llama 3.1 8B fine-tuned for function/tool calling (ToolACE-2.5 dataset).
Performed with heretic — Optuna multi-objective optimization.
Uses JSON function calling via the Llama 3.1 chat template:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"nitrox/ToolACE-2.5-Llama-3.1-8B-heretic",
device_map="auto",
torch_dtype="bfloat16",
)
tokenizer = AutoTokenizer.from_pretrained("nitrox/ToolACE-2.5-Llama-3.1-8B-heretic")
tools = [
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get current weather for a location",
"parameters": {
"type": "object",
"properties": {
"location": {"type": "string", "description": "City name"}
},
"required": ["location"]
}
}
}
]
messages = [{"role": "user", "content": "What's the weather in Paris?"}]
inputs = tokenizer.apply_chat_template(
messages, tools=tools, add_generation_prompt=True, return_tensors="pt"
).to(model.device)
outputs = model.generate(inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True))
Refusal mechanisms have been removed. Use responsibly and in accordance with applicable laws.