Downloads · 30 days
15
20% of all-time downloads
james-unicorn/affine-train-1
affine-train-1 is a text generation model from james-unicorn. 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.
Downloads · 30 days
15
20% of all-time downloads
All-time downloads
74
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("james-unicorn/affine-train-1")
tokenizer = AutoTokenizer.from_pretrained("james-unicorn/affine-train-1")
# Generate text
inputs = tokenizer("Hello, how are you?", return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))