Downloads · 30 days
12
15% of all-time downloads
Ignaciohhhhggfgjfrffd/SLM-Unified-Expert-Finetuned
SLM-Unified-Expert-Finetuned is a text generation model from Ignaciohhhhggfgjfrffd. Use it when you need the model to write or continue text. The card lists the license as mit.
Este es un Small Language Model (SLM) con aproximadamente 51.21M de parámetros, entrenado desde cero. - Capas: 8 - Cabezales de Atención: 8 - Dimensión de Embeddings: 512 - Tamaño de Vocabulario: 50257 - Tamaño de Con…
Downloads · 30 days
12
15% of all-time downloads
All-time downloads
80
Public
Parameters
51.2M
205 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors205 MB · 99%
From the Hugging Face model README
Este es un Small Language Model (SLM) con aproximadamente 51.21M de parámetros, entrenado desde cero.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "Ignaciohhhhggfgjfrffd/SLM-Unified-Expert-Finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
messages = [{"role": "user", "content": "Escribe un poema corto sobre el universo."}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs, skip_special_tokens=False))