Downloads · 30 days
11
8% of all-time downloads
goryodog/tokihisu-cat-translate-0.8b-q4
tokihisu-cat-translate-0.8b-q4 is a text generation model from goryodog. 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 mit.
This repository contains a Transformers.js-compatible, symmetric Q4 ONNX export of cyberagent/CAT-Translate-0.8b for Japanese ↔ English translation.
Downloads · 30 days
11
8% of all-time downloads
All-time downloads
141
Public
Repo size
941 MB
Likes
0
Public
Click a slice to open those files.
.onnx_data938 MB · 99%
From the Hugging Face model README
This repository contains a Transformers.js-compatible, symmetric Q4 ONNX export of
cyberagent/CAT-Translate-0.8b for Japanese ↔ English translation.
b386247b30fd3b1911f7c694700d73843c376c6etext-generationtext-generation-with-past1.09 MiB894.77 MiBimport { pipeline } from '@huggingface/transformers';
const translator = await pipeline('text-generation', 'goryodog/tokihisu-cat-translate-0.8b-q4', {
device: 'webgpu',
dtype: 'q4',
});
const prompt = 'Translate the following Japanese text into English.\n\nこんにちは。';
const result = await translator([{ role: 'user', content: prompt }], {
max_new_tokens: 160,
do_sample: false,
return_full_text: false,
});
console.log(result);
The source model requires the instruction format:
Translate the following {source language} text into {target language}.
{source text}
See conversion-manifest.json for exact package versions, source pin, graph I/O,
quantization settings, and SHA-256 hashes.
The source model is MIT licensed. See LICENSE and the original model repository.