Downloads · 30 days
8
18% of all-time downloads
Loke-60000/rin-4b-exp
rin-4b-exp is a text generation model from Loke-60000. 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.
A model trained for agentic work on device.
Downloads · 30 days
8
18% of all-time downloads
All-time downloads
44
Public
Parameters
4.2B
8.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8.4 GB · 100%
From the Hugging Face model README
A model trained for agentic work on device.
from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("Loke-60000/rin-4b")
model = AutoModelForCausalLM.from_pretrained("Loke-60000/rin-4b", device_map="auto")
msgs = [{"role": "user", "content": "Write a Python function to reverse a string."}]
inputs = tok.apply_chat_template(msgs, add_generation_prompt=True, return_tensors="pt").to(model.device)
print(tok.decode(model.generate(**{"input_ids": inputs}, max_new_tokens=512)[0]))