Downloads · 30 days
10
17% of all-time downloads
weirek/affine-63
affine-63 is a text generation model from weirek. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
This model has been fine-tuned for conversational AI tasks.
Downloads · 30 days
10
17% of all-time downloads
All-time downloads
58
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
This model has been fine-tuned for conversational AI tasks.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"weirek/affine-63",
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("weirek/affine-63")
# Generate text
messages = [
{"role": "user", "content": "Hello, how are you?"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This model inherits limitations from its base model and training data. Use responsibly and be aware of potential biases.