Downloads · 30 days
56
19% of all-time downloads
benjaminchazelle/camembert-onnx
camembert-onnx is a fill-mask model from benjaminchazelle. Use it when you need the model to fill a missing word. It is set up for transformers.js. The card lists the license as mit.
The camembert/camembert-base model converted in ONNX format.
Downloads · 30 days
56
19% of all-time downloads
All-time downloads
296
Public
Repo size
1.2 GB
Likes
2
Public
Click a slice to open those files.
.onnx678 MB · 100%
From the Hugging Face model README
The camembert/camembert-base model converted in ONNX format.
This model handles the Fill-Mask pipeline and can therefore be used for offline text completion through Transformers.js.
<script type="module">
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]';
const unmasker = await pipeline('fill-mask', 'benjaminchazelle/camembert-onnx', { quantized: false })
console.log(await unmasker('La capitale de la France est<mask>'))
/*
[
{
"score": 0.45410260558128357,
"token": 186,
"token_str": "▁...",
"sequence": "La capitale de la France est..."
},
{
"score": 0.06095331534743309,
"token": 300,
"token_str": "▁Paris",
"sequence": "La capitale de la France est Paris"
},
{
"score": 0.04425867274403572,
"token": 16,
"token_str": "▁le",
"sequence": "La capitale de la France est le"
},
{
"score": 0.035498425364494324,
"token": 807,
"token_str": "▁[...]",
"sequence": "La capitale de la France est [...]"
},
{
"score": 0.03408252075314522,
"token": 13,
"token_str": "▁la",
"sequence": "La capitale de la France est la"
}
]
*/
</script>