Downloads · 30 days
30
40% of all-time downloads
Inishds/function_calling_TinyLlama-1.1B-python-v0.1_epoch3
function_calling_TinyLlama-1.1B-python-v0.1_epoch3 is a text generation model from Inishds. 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.
functioncallingTinyLlama-1.1B-python-v0.1epoch3 is an SFT fine-tuned version of TinyLlama/TinyLlama-1.1B-step-50K-105b using a custom training dataset. This model was made with Phinetune
Downloads · 30 days
30
40% of all-time downloads
All-time downloads
75
Public
Parameters
1.1B
2.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors2.2 GB · 100%
From the Hugging Face model README
function_calling_TinyLlama-1.1B-python-v0.1_epoch3 is an SFT fine-tuned version of TinyLlama/TinyLlama-1.1B-step-50K-105b using a custom training dataset. This model was made with Phinetune
!pip install -qU transformers
from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline
model = "Inishds/function_calling_TinyLlama-1.1B-python-v0.1_epoch3"
tokenizer = AutoTokenizer.from_pretrained(model)
# Example prompt
prompt = "Your example prompt here"
# Generate a response
model = AutoModelForCausalLM.from_pretrained(model)
pipeline = pipeline("text-generation", model=model, tokenizer=tokenizer)
outputs = pipeline(prompt, max_length=50, num_return_sequences=1)
print(outputs[0]["generated_text"])