Downloads · 30 days
2
1% of all-time downloads
Soorya03/Llama-2-7b-FitnessAssistant
Llama-2-7b-FitnessAssistant is a text generation model from Soorya03. Use it when you need the model to write or continue text. It is set up for transformers.
This model is a fine-tuned version of Llama-2-7b-chat, optimized for tasks related to fitness assistance. It has been trained to provide recommendations, answer questions, and perform related language-based tasks with…
Downloads · 30 days
2
1% of all-time downloads
All-time downloads
371
Public
Parameters
6.7B
13.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors13.5 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of Llama-2-7b-chat, optimized for tasks related to fitness assistance. It has been trained to provide recommendations, answer questions, and perform related language-based tasks within the fitness and exercise domain.
This model is intended for interactive fitness and exercise assistance, such as providing exercise recommendations, suggesting workout routines, and answering general fitness-related questions.
May be adapted to various other fitness or health-oriented conversational applications.
Not suitable for medical or professional health advice. Avoid use cases where specialized knowledge or regulated health guidelines are required.
Users should be aware that the model's responses are based on general fitness knowledge and are not specialized medical guidance.
! pip install accelerate peft bitsandbytes transformers trl
import torch from transformers import BitsAndBytesConfig, AutoModelForCausalLM, AutoTokenizer, pipeline
device_map = {"": 0}
compute_dtype = getattr(torch, "float16")
bnb_config = BitsAndBytesConfig( load_in_4bit=True, bnb_4bit_quant_type="nf4", bnb_4bit_compute_dtype="float16", bnb_4bit_use_double_quant=False, )
model = AutoModelForCausalLM.from_pretrained( "Soorya03/Llama-2-7b-FitnessAssistant", quantization_config=bnb_config, device_map=device_map ) model.config.use_cache = False model.config.pretraining_tp = 1
tokenizer = AutoTokenizer.from_pretrained("Soorya03/Llama-2-7b-FitnessAssistant", trust_remote_code=True)
prompt = "Is it possible to build muscle while losing weight?" pipe = pipeline(task="text-generation", model=model, tokenizer=tokenizer, max_length=200) result = pipe(f"[INST] {prompt} [/INST]") print(result[0]['generated_text'])
The model was fine-tuned on a fitness and exercise dataset (onurSakar/GYM-Exercise) to improve its domain knowledge in providing fitness-related responses.
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->Sample fitness-related prompts were used for evaluation, but a formal benchmarking dataset was not utilized.
Manual qualitative assessments showed the model’s suitability for fitness Q&A and general suggestions.
The model effectively generates coherent responses related to fitness, workouts, and exercise routines, with accurate language comprehension.
This model is based on the Llama-2-7b-chat architecture, adapted to provide conversational responses within a specific fitness domain.