yahma/alpaca-cleaned
Viewer • Updated • 51.8k • 29.8k • 833
How to use Samuel11111997/llama3-finetuned-alpaca with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Samuel11111997/llama3-finetuned-alpaca to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Samuel11111997/llama3-finetuned-alpaca to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Samuel11111997/llama3-finetuned-alpaca to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="Samuel11111997/llama3-finetuned-alpaca",
max_seq_length=2048,
)Modelo Llama 3.2 1B entrenado con Unsloth y adaptadores LoRA (r=8) sobre 500 ejemplos del dataset alpaca-cleaned.
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
"Samuel11111997/llama3-finetuned-alpaca",
max_seq_length=512,
load_in_4bit=True,
)
# Generar texto
inputs = tokenizer("### Instruction:\nExplica qué es el fine‑tuning\n\n### Response:\n", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Entorno: Google Colab (Tesla T4)
Épocas: 3
Learning rate: 2e‑4
Pérdida final: 1.13
Hardware: Tesla T4
Tiempo: ~3 min/época
Repositorio ai-mastery: https://github.com/spl248/ai-mastery/
Artículo técnico: https://medium.com/@spulido248/fine-tuning-de-llama-3-2-con-unsloth-el-siguiente-nivel-de-la-especializaci%C3%B3n-en-ia-9c909337c8e6
Vídeo demo: Al finalizar este video.
Apache 2.0