Downloads · 30 days
18
1% of all-time downloads
ramgovindv/health_function_call_llama3.2_3b_gguf
health_function_call_llama3.2_3b_gguf is a machine learning model from ramgovindv. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A fine-tuned Llama 3.2 3B GGUF model designed for structured function calling in healthcare edge devices.Trained to convert natural language health queries into JSON-based function calls.
Downloads · 30 days
18
1% of all-time downloads
All-time downloads
2K
Public
Repo size
2 GB
Likes
1
Public
Click a slice to open those files.
.gguf2 GB · 100%
From the Hugging Face model README
A fine-tuned Llama 3.2 3B GGUF model designed for structured function calling in healthcare edge devices.Trained to convert natural language health queries into JSON-based function calls.
Base Model: LLama 3.2 3B
Fine Tuning: Parameter Efficient Fine Tuning. Targeted all linear layers (Q, K, V, O, gate, up, down), the model learned complex mapping logic while maintaining a tiny 10.5 MB adapter footprint.
Quantization: Exported to GGUF (Q4_K_M) format.
Dataset: The model is trained on the MindCall Dataset, a curated synthetic collection of 5,000+ high-fidelity health interaction pairs.
<think> tagsLlama-3.2-3B-Instruct.Q4_K_M.ggufpip install llama-cpp-python huggingface_hub
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="ramgovindv/health_function_call_llama3.2_3b_gguf",
filename="Llama-3.2-3B-Instruct.Q4_K_M.gguf",
)
query = "I am feeling dizzy for 2 days"
prompt = f"""
You are an API generator.
Return JSON in this format:
{{
"name": "function_name",
"parameters": {{
"key": "value"
}}
}}
User query:
{query}
JSON:
"""
response = llm.create_chat_completion(
messages=[{"role": "user", "content": prompt}],
temperature=0.1
)
output = response["choices"][0]["message"]["content"]
print(output)
<think>
User has dizziness → likely need blood pressure check
</think>
<function>
{
"name": "get_blood_pressure_data",
"parameters": {
"num_days": 2
}
}
</function>
<think> → reasoning <br>
<function> → actual function call