Felladrin/onnx-bloomz-560m-sft-chat
By Felladrin · ↓ 8 · ♥ 1 · Updated 2025-03-06
What's in this repo
This page lists the files in Felladrin/onnx-bloomz-560m-sft-chat, including decoder_model_merged.onnx, decoder_model_merged_quantized.onnx.
- 2 ONNX models (.onnx files)
- 11 files, including 6 .json, 2 .onnx, 1 .md, 1 .onnx_data
- Last updated 2025-03-06
ONNX files
| File | Size | Download |
|---|---|---|
| onnx/decoder_model_merged.onnx | — | Download |
| onnx/decoder_model_merged_quantized.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
INT8 ONNX version of cmarkea/bloomz-560m-sft-chat to use with Transformers.js.
Example usage
Pipeline API
import { pipeline } from '@xenova/transformers';
const generator = await pipeline('text-generation', 'Felladrin/onnx-bloomz-560m-sft-chat');
const output = await generator('</s>What is the first world war?<s>', { add_special_tokens: true, max_new_tokens: 128, repetition_penalty: 1.2});
console.log(output); // The first world war was a conflict between the United States and the Soviet Union. The conflict began in World War II and lasted until the end of World War III.
Auto Classes
import { AutoModelForCausalLM, AutoTokenizer } from '@xenova/transformers';
const model_path = 'Felladrin/onnx-bloomz-560m-sft-chat';
const model = await AutoModelForCausalLM.from_pretrained(model_path);
const tokenizer = await AutoTokenizer.from_pretrained(model_path);
const prompt = '</s>What is the first world war?<s>';
const { input_ids } = tokenizer(prompt);
const tokens = await model.generate(input_ids, { max_new_tokens: 128, repetition_penalty: 1.2});
console.log(tokenizer.decode(tokens[0], { skip_special_tokens: true }));
// The first world war was a conflict between the United States and the Soviet Union. The conflict began in World War II and lasted until the end of World War III.
Model info
text-generation
transformers.js
transformers.js
onnx
bloom
text-generation
fr
en
dataset:ehartford/wizard_vicuna_70k_unfiltered
dataset:shahules786/orca-chat
dataset:timdettmers/openassistant-guanaco
dataset:laion/OIG
base_model:cmarkea/bloomz-560m-sft-chat
base_model:quantized:cmarkea/bloomz-560m-sft-chat
↓ 8
♥ 1
Created: 2023-11-23
Updated: 2025-03-06
View on Hugging FaceFiles (11)
.gitattributes
README.md
config.json
generation_config.json
onnx/decoder_model_merged.onnx
ONNX
onnx/decoder_model_merged.onnx_data
quantize_config.json
special_tokens_map.json
tokenizer.json
tokenizer_config.json