Downloads · 30 days
25
13% of all-time downloads
matteoangeloni/llama-educator
llama-educator is a text generation model from matteoangeloni. 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.
- Developed by: matteoangeloni - License: apache-2.0 - Base model: unsloth/meta-llama-3.1-8b-unsloth-bnb-4bit - Libraries used: Unsloth, Hugging Face TRL
Downloads · 30 days
25
13% of all-time downloads
All-time downloads
200
Public
Parameters
8B
21 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16.1 GB · 76%
From the Hugging Face model README
This model is my first finetuned Llama model, built for educational and legal-domain text generation.
Training was accelerated with Unsloth (2x faster fine-tuning) and integrated with Hugging Face tools.
The model was trained on:
⚠️ Not suitable for production. This is an experimental finetune.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "matteoangeloni/llama3-8b-edu"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
prompt = "Summarize the main points of the Italian privacy law."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))