Downloads · 30 days
4
4% of all-time downloads
jestevesv/qwen1.5-0.5b-chat
qwen1.5-0.5b-chat is a text generation model from jestevesv. Use it when you need the model to write or continue text. It is set up for transformers.js. The card lists the license as other.
This is a quantized version of the Qwen 1.5 0.5B model from Alibaba Cloud, optimized for efficient inference on devices with limited memory. Quantization reduces the model's size and improves its computational speed b…
Downloads · 30 days
4
4% of all-time downloads
All-time downloads
102
Public
Repo size
482 MB
Likes
0
Public
Click a slice to open those files.
.onnx482 MB · 99%
From the Hugging Face model README
This is a quantized version of the Qwen 1.5 0.5B model from Alibaba Cloud, optimized for efficient inference on devices with limited memory. Quantization reduces the model's size and improves its computational speed by using 8-bit integers instead of 32-bit floating-point numbers.
config.jsontokenizer.jsontokenizer_config.jsononnx/decoder_model_merged_quantized.onnximport { pipeline, AutoTokenizer } from '@xenova/transformers';
async function runTextGeneration() {
const generator = await pipeline(
'text-generation',
'jestevesv/qwen1.5-0.5b-chat',
{ quantized: true }
);
const prompt = 'Hola, ¿cómo estás hoy?';
const output = await generator(prompt, {
max_length: 100,
do_sample: true,
temperature: 0.7,
});
console.log(output);
}
runTextGeneration().catch(err => {
console.error('Error:', err);
});