Downloads · 30 days
23
17% of all-time downloads
alfazick/llama-3.1-8b-function-calling
llama-3.1-8b-function-calling is a text generation model from alfazick. Use it when you need the model to write or continue text. The card lists the license as llama3.1.
Fine-tuned Llama 3.1 8B Instruct for function/tool calling.
Downloads · 30 days
23
17% of all-time downloads
All-time downloads
134
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
Fine-tuned Llama 3.1 8B Instruct for function/tool calling.
from vllm import LLM
llm = LLM(model="alfazick/llama-3.1-8b-function-calling")
Or with transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("alfazick/llama-3.1-8b-function-calling")
tokenizer = AutoTokenizer.from_pretrained("alfazick/llama-3.1-8b-function-calling")
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are a helpful assistant with access to the following tools or function calls. Your task is to produce a sequence of tools or function calls necessary to generate response to the user utterance. Use the following tools or function calls as required:
[{"name": "func_name", "description": "...", "parameters": {...}}]<|eot_id|><|start_header_id|>user<|end_header_id|>
{query}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
[{"name": "function_name", "arguments": {"arg": "value"}}]