Text Generation
Transformers.js
ONNX
multilingual
gemma3_text
gemma3
translation
no-vision
causal-lm
conversational
Instructions to use willopcbeta/translategemma-4b-it-Text-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use willopcbeta/translategemma-4b-it-Text-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'willopcbeta/translategemma-4b-it-Text-ONNX');
Update README.md
#3
by willopcbeta - opened
README.md
CHANGED
|
@@ -44,7 +44,9 @@ This repo contains a converted `Gemma3ForCausalLM` checkpoint extracted from the
|
|
| 44 |
|
| 45 |
## How to use (different chat template from the original `google/translategemma-4b-it` page, similar to `google/gemma-3-1b-it`)
|
| 46 |
## transformers.js
|
| 47 |
-
|
|
|
|
|
|
|
| 48 |
|
| 49 |
```async function initializeModel() {
|
| 50 |
try {
|
|
|
|
| 44 |
|
| 45 |
## How to use (different chat template from the original `google/translategemma-4b-it` page, similar to `google/gemma-3-1b-it`)
|
| 46 |
## transformers.js
|
| 47 |
+
|
| 48 |
+
If you encounter dialogue problems, try not using "apply_chat_template" directly passing messages.
|
| 49 |
+
ex:```const result = await generator(messages, {....```
|
| 50 |
|
| 51 |
```async function initializeModel() {
|
| 52 |
try {
|