ONNX export of
yhavinga/gpt2-medium-dutch for use in the browser with
Transformers.js.
1import { pipeline } from '@huggingface/transformers';
2
3const generator = await pipeline(
4 'text-generation',
5 'bnicenboim/gpt2-medium-dutch-onnx'
6);
7
8const result = await generator('De kat zat op de', { max_new_tokens: 50 });
9console.log(result[0].generated_text);
Causal language modelling / text completion in Dutch, running client-side in the browser via Transformers.js. Not an instruction or chat model.
This is a 355M parameter model. For faster inference in the browser, consider using
bnicenboim/gpt-neo-125m-dutch-onnx instead (125M parameters).