Downloads · 30 days
8
4% of all-time downloads
Smilyai-labs/Sam-X-1.5
Sam-X-1.5 is a machine learning model from Smilyai-labs. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
- Parameters: 348,357,632 (~348.4M) - Architecture: 24L × 1024d × 16H - Final Perplexity: 4.81 - Final Accuracy: 80.34%
Downloads · 30 days
8
4% of all-time downloads
All-time downloads
228
Public
Parameters
348M
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.4 GB · 52%
From the Hugging Face model README
User: {{input}}
Sam: {{output}}
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("YOUR_USERNAME/sam1-600m")
model = AutoModelForCausalLM.from_pretrained("YOUR_USERNAME/sam1-600m")
prompt = "User: Hello!\nSam:"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=100)
print(tokenizer.decode(outputs[0]))