Downloads · 30 days
128
2% of all-time downloads
Lukamac/PlayPart-AI-Personal-Trainer
PlayPart-AI-Personal-Trainer is a text generation model from Lukamac. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of GPT-2, specifically trained on sports-related and gym exercise datasets. It is intended to provide text-generation capabilities for answering questions about fitness, sports, work…
Downloads · 30 days
128
2% of all-time downloads
All-time downloads
8.1K
Public
Parameters
124M
498 MB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors498 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of GPT-2, specifically trained on sports-related and gym exercise datasets. It is intended to provide text-generation capabilities for answering questions about fitness, sports, workout routines, and providing personalized training suggestions.
To use the model, you can either use the Hugging Face Inference API or load it in your Python environment.
from transformers import GPT2Tokenizer, GPT2LMHeadModel
# Load the model
tokenizer = GPT2Tokenizer.from_pretrained("Lukamac/PlayPart-AI-Personal-Trainer")
model = GPT2LMHeadModel.from_pretrained("Lukamac/PlayPart-AI-Personal-Trainer")
# Generate a response
input_text = "What are the best exercises for building upper body strength?"
input_ids = tokenizer.encode(input_text, return_tensors='pt')
output_ids = model.generate(input_ids, max_length=50)
response = tokenizer.decode(output_ids[0], skip_special_tokens=True)
print(response)