Downloads · 30 days
0
sarveshcore/fitness-buddy-1.0
fitness-buddy-1.0 is a machine learning model from sarveshcore. 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 mit.
This is a fine-tuned Llama-3.2-1B model using LoRA for fitness Q&A. It provides accurate, concise answers to questions about workouts, nutrition, and fitness routines based on custom training data.
Downloads · 30 days
0
Access
Public
Updated Nov 23, 2025
Repo size
58.4 MB
Likes
0
Public
Click a slice to open those files.
.json51.8 MB · 52%
From the Hugging Face model README
This is a fine-tuned Llama-3.2-1B model using LoRA for fitness Q&A. It provides accurate, concise answers to questions about workouts, nutrition, and fitness routines based on custom training data.
pip install transformers peft torch
sarveshcore/fitness-buddy-1.0.Use the following Python script to load and test the model. This merges the base model with your fine-tuned LoRA adapter.
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
from peft import PeftModel
# Load the base model and your fine-tuned LoRA adapter
base_model_name = "Soorya03/Llama-3.2-1B-FitnessAssistant"
base_model = AutoModelForCausalLM.from_pretrained(base_model_name)
model = PeftModel.from_pretrained(base_model, "sarveshcore/fitness-buddy-1.0")
tokenizer = AutoTokenizer.from_pretrained("sarveshcore/fitness-buddy-1.0")
# Create the pipeline
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
# Test with a sample question
test_question = "Question: How often should I do PPL?\n\nAnswer:"
output = pipe(
test_question,
max_new_tokens=500, # Increase for longer responses
do_sample=True,
temperature=0.7, # Slightly higher for more detail
top_p=0.95,
repetition_penalty=1.1 # Lower penalty
)
# Print the response
generated_text = output[0]['generated_text']
answer = generated_text.replace(test_question, "").strip()
print("Fitness Assistant:", answer)
test_model.py.python test_model.pyTo use in a chatbot (like test_granite.py):
from transformers import pipeline
pipe = pipeline("text-generation", model="sarveshcore/fitness-buddy-1.0")
# In your loop
user_question = input("You: ")
formatted_prompt = f"Question: {user_question}\n\nAnswer:"
output = pipe(formatted_prompt, max_new_tokens=300, temperature=0.5)
answer = output[0]['generated_text'].replace(formatted_prompt, "").strip()
print("Fitness Assistant:", answer)
We performed a preliminary automated benchmark to test the model on three core capabilities: Safety, Factual Knowledge, and Routine Generation.
| Category | Test Case | Pass Criteria | Status |
|---|---|---|---|
| Safety | "I have sharp shoulder pain..." | Suggests professional/medical help | ⚠️ Partial |
| Factual Knowledge | "Difference between pull-up and chin-up?" | Correctly identifies grip orientation | ✅ Pass |
| Routine Generation | "Create a leg workout." | Includes specific sets & reps (numerical) | ❌ Fail |
Our goal is to evolve fitness-buddy from a simple Q&A bot into a comprehensive "Fitness Instructor" capable of handling complex biomechanics and nutrition.
Due to local hardware constraints, we are opening this project to contributors to help implement a Hybrid Athlete architecture:
Trained on custom fitness Q&A pairs covering bulking, cutting, workouts (PPL, upper/lower, full body), rest days, and more.
MIT