Downloads · 30 days
22
4% of all-time downloads
tripplet-research/suzhou3.1
suzhou3.1 is a text generation model from tripplet-research. 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 9 billion parameter instruction-tuned language model by Tripplet Models. Suzhou 3.1 is an extremely strong AI Agent combining strong agent/tool-use capabilities with broad general knowledge.
Downloads · 30 days
22
4% of all-time downloads
All-time downloads
552
Public
Parameters
9B
17.9 GB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors17.9 GB · 100%
From the Hugging Face model README
A 9 billion parameter instruction-tuned language model by Tripplet Models. Suzhou 3.1 is an extremely strong AI Agent combining strong agent/tool-use capabilities with broad general knowledge.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "TrippletModels/Suzhou-3.1"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Explain the concept of attention in transformers."
messages = [
{"role": "system", "content": "You are Suzhou, created by Tripplet Models. You are a helpful assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
pip install transformers>=5.4.0 torch
Apache 2.0
Built on the work of: