Downloads · 30 days
8
13% of all-time downloads
seconds-0/nsa-117m-byte-sft
nsa-117m-byte-sft is a machine learning model from seconds-0. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a fine-tuned version of the NSA-117M byte-level model on the Alpaca dataset.
Downloads · 30 days
8
13% of all-time downloads
All-time downloads
61
Public
Parameters
78.3M
313 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors313 MB · 100%
From the Hugging Face model README
This is a fine-tuned version of the NSA-117M byte-level model on the Alpaca dataset.
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch
model = AutoModelForCausalLM.from_pretrained("seconds-0/nsa-117m-byte-sft", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("seconds-0/nsa-117m-byte-sft", trust_remote_code=True)
prompt = "System: You are a helpful assistant. Answer briefly and clearly.\nUser: What is the capital of France?\nAssistant:"
inputs = tokenizer(prompt, return_tensors="pt")
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=50, temperature=0.7, do_sample=True)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model uses byte-level tokenization, so outputs may appear unusual compared to standard subword tokenizers.