Affine-5GsKgvbpC9C1keMtnw1woBe1Fy3pUvmCrhvUKu4rBX8cX13W

5
license:apache-2.0
by
weirek
Language Model
OTHER
New
5 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary

AI model with specialized capabilities.

Code Examples

Affine-5Eee8m2MbQiAUR3QGixeiAAPYos9AzqRfQpx1Rb59YHB1CgTpythontransformers
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained(
    "weirek/Affine-5Eee8m2MbQiAUR3QGixeiAAPYos9AzqRfQpx1Rb59YHB1CgT",
    torch_dtype="auto",
    device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained("weirek/Affine-5Eee8m2MbQiAUR3QGixeiAAPYos9AzqRfQpx1Rb59YHB1CgT")

# 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))

Deploy This Model

Production-ready deployment in minutes

Together.ai

Instant API access to this model

Fastest API

Production-ready inference API. Start free, scale to millions.

Try Free API

Replicate

One-click model deployment

Easiest Setup

Run models in the cloud with simple API. No DevOps required.

Deploy Now

Disclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.