Downloads · 30 days
25
6% of all-time downloads
gajesh/llama-3-2-1b-instruct-eigentuned
llama-3-2-1b-instruct-eigentuned is a text generation model from gajesh. 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 meta-llama/Llama-3.2-1B-Instruct on custom data. It has been trained to generate coherent and contextually relevant responses based on the input prompt.
Downloads · 30 days
25
6% of all-time downloads
All-time downloads
426
Public
Parameters
1.2B
7.4 GB on disk
Likes
2
Public
Click a slice to open those files.
.pt4.9 GB · 50%
From the Hugging Face model README
This model is a fine-tuned version of meta-llama/Llama-3.2-1B-Instruct on custom data. It has been trained to generate coherent and contextually relevant responses based on the input prompt.
meta-llama/Llama-3.2-1B-InstructThe model was fine-tuned on a dataset containing domain-specific examples designed to improve its understanding and generation capabilities within specific contexts. The training data included:
g5.16xlarge instance.To use this model, you can either download it and run locally using the transformers library or use the Hugging Face Inference API.
transformersfrom transformers import AutoTokenizer, AutoModelForCausalLM
# Load the fine-tuned model and tokenizer
tokenizer = AutoTokenizer.from_pretrained("username/your-fine-tuned-llama")
model = AutoModelForCausalLM.from_pretrained("username/your-fine-tuned-llama")
# Generate text
prompt = "What does EigenLayer do exactly?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=150, num_beams=4, temperature=0.5, do_sample=True)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
You can also use the model via the Hugging Face API endpoint:
import requests
API_URL = "https://api-inference.huggingface.co/models/username/your-fine-tuned-llama"
headers = {"Authorization": "Bearer YOUR_HUGGING_FACE_API_TOKEN"}
def query(prompt):
response = requests.post(API_URL, headers=headers, json={"inputs": prompt})
return response.json()
print(query("Explain how EigenLayer functions."))
Please ensure that the outputs of this model are used responsibly. The model may generate unintended or harmful content, so it should be used with caution in sensitive applications.
This model was fine-tuned based on meta-llama/Llama-3.2-1B-Instruct. Special thanks to the open-source community and contributors to the transformers library.