Downloads · 30 days
14
9% of all-time downloads
onnx-community/Trinity-Nano-Preview-ONNX
Trinity-Nano-Preview-ONNX is a machine learning model from onnx-community. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
<div align="center" <picture <img src="https://cdn-uploads.huggingface.co/production/uploads/6435718aaaef013d1aec3b8b/i-v1KyAMOWmgVGeic9WJ.png" alt="Arcee Trinity Mini" style="max-width: 100%; height: auto;" </picture…
Downloads · 30 days
14
9% of all-time downloads
All-time downloads
162
Public
Repo size
78.7 GB
Likes
1
Public
Click a slice to open those files.
.onnx_data10 GB · 19%
From the Hugging Face model README
Trinity Nano Preview is a preview of Arcee AI's 6B MoE model with 1B active parameters. It is the small-sized model in our new Trinity family, a series of open-weight models for enterprise and tinkerers alike.
This is a chat tuned model, with a delightful personality and charm we think users will love. We note that this model is pushing the limits of sparsity in small language models with only 800M non-embedding parameters active per token, and as such may be unstable in certain use cases, especially in this preview.
This is an experimental release, it's fun to talk to but will not be hosted anywhere, so download it and try it out yourself!
Trinity Nano Preview is trained on 10T tokens gathered and curated through a key partnership with Datology, building upon the excellent dataset we used on AFM-4.5B with additional math and code.
Training was performed on a cluster of 512 H200 GPUs powered by Prime Intellect using HSDP parallelism.
More details, including key architecture decisions, can be found on our blog here
Use the v4 transformers preview version
npm i @huggingface/transformers@next
You can then run the model as follows:
import { pipeline, TextStreamer } from "@huggingface/transformers";
// Create a text generation pipeline
const generator = await pipeline(
"text-generation",
"onnx-community/Trinity-Nano-Preview-ONNX",
{ device: "webgpu", dtype: "q4f16" },
);
// Define the list of messages
const messages = [
{ role: "system", content: "You are a helpful assistant." },
{ role: "user", content: "Write me a poem about Machine Learning." },
];
// Generate a response
const output = await generator(messages, {
max_new_tokens: 512,
do_sample: false,
streamer: new TextStreamer(generator.tokenizer, { skip_prompt: true, skip_special_tokens: true }),
});
console.log(output[0].generated_text.at(-1).content);
Trinity-Nano-Preview is released under the Apache-2.0 license.