Downloads · 30 days
8
13% of all-time downloads
asrith05/slm
slm is a text generation model from asrith05. 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.
Fine-tuned multilingual model for entity extraction tasks.
Downloads · 30 days
8
13% of all-time downloads
All-time downloads
63
Public
Parameters
109M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt873 MB · 66%
From the Hugging Face model README
Fine-tuned multilingual model for entity extraction tasks.
from transformers import AutoTokenizer, AutoModelForCausalLM
model_name = "asrith05/slm"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example usage
prompt = "Extract entities: John works at Microsoft in Seattle."
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=50)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))