Edit model card

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/transformers@2.6.2';

    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>
Downloads last month
8
Inference Examples
Inference API (serverless) does not yet support transformers.js models for this pipeline type.