google / canine-c

huggingface.co
Total runs: 508.6K
24-hour runs: 0
7-day runs: 308.9K
30-day runs: -136.6K
Model's Last Updated: April 29 2024
feature-extraction

Introduction of canine-c

Model Details of canine-c

CANINE-c (CANINE pre-trained with autoregressive character loss)

Pretrained CANINE model on 104 languages using a masked language modeling (MLM) objective. It was introduced in the paper CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation and first released in this repository .

What's special about CANINE is that it doesn't require an explicit tokenizer (such as WordPiece or SentencePiece) as other models like BERT and RoBERTa. Instead, it directly operates at a character level: each character is turned into its Unicode code point .

This means that input processing is trivial and can typically be accomplished as:

input_ids = [ord(char) for char in text]

The ord() function is part of Python, and turns each character into its Unicode code point.

Disclaimer: The team releasing CANINE did not write a model card for this model so this model card has been written by the Hugging Face team.

Model description

CANINE is a transformers model pretrained on a large corpus of multilingual data in a self-supervised fashion, similar to BERT. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was pretrained with two objectives:

  • Masked language modeling (MLM): one randomly masks part of the inputs, which the model needs to predict. This model (CANINE-c) is trained with an autoregressive character loss. One masks several character spans within each sequence, which the model then autoregressively predicts.
  • Next sentence prediction (NSP): the model concatenates two sentences as inputs during pretraining. Sometimes they correspond to sentences that were next to each other in the original text, sometimes not. The model then has to predict if the two sentences were following each other or not.

This way, the model learns an inner representation of multiple languages that can then be used to extract features useful for downstream tasks: if you have a dataset of labeled sentences for instance, you can train a standard classifier using the features produced by the CANINE model as inputs.

Intended uses & limitations

You can use the raw model for either masked language modeling or next sentence prediction, but it's mostly intended to be fine-tuned on a downstream task. See the model hub to look for fine-tuned versions on a task that interests you.

Note that this model is primarily aimed at being fine-tuned on tasks that use the whole sentence (potentially masked) to make decisions, such as sequence classification, token classification or question answering. For tasks such as text generation you should look at models like GPT2.

How to use

Here is how to use this model:

from transformers import CanineTokenizer, CanineModel

model = CanineModel.from_pretrained('google/canine-c')
tokenizer = CanineTokenizer.from_pretrained('google/canine-c')

inputs = ["Life is like a box of chocolates.", "You never know what you gonna get."]
encoding = tokenizer(inputs, padding="longest", truncation=True, return_tensors="pt")

outputs = model(**encoding) # forward pass
pooled_output = outputs.pooler_output
sequence_output = outputs.last_hidden_state
Training data

The CANINE model was pretrained on on the multilingual Wikipedia data of mBERT , which includes 104 languages.

BibTeX entry and citation info
@article{DBLP:journals/corr/abs-2103-06874,
  author    = {Jonathan H. Clark and
               Dan Garrette and
               Iulia Turc and
               John Wieting},
  title     = {{CANINE:} Pre-training an Efficient Tokenization-Free Encoder for
               Language Representation},
  journal   = {CoRR},
  volume    = {abs/2103.06874},
  year      = {2021},
  url       = {https://arxiv.org/abs/2103.06874},
  archivePrefix = {arXiv},
  eprint    = {2103.06874},
  timestamp = {Tue, 16 Mar 2021 11:26:59 +0100},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2103-06874.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

Runs of google canine-c on huggingface.co

508.6K
Total runs
0
24-hour runs
184.2K
3-day runs
308.9K
7-day runs
-136.6K
30-day runs

More Information About canine-c huggingface.co Model

More canine-c license Visit here:

https://choosealicense.com/licenses/apache-2.0

canine-c huggingface.co

canine-c huggingface.co is an AI model on huggingface.co that provides canine-c's model effect (), which can be used instantly with this google canine-c model. huggingface.co supports a free trial of the canine-c model, and also provides paid use of the canine-c. Support call canine-c model through api, including Node.js, Python, http.

canine-c huggingface.co Url

https://huggingface.co/google/canine-c

google canine-c online free

canine-c huggingface.co is an online trial and call api platform, which integrates canine-c's modeling effects, including api services, and provides a free online trial of canine-c, you can try canine-c online for free by clicking the link below.

google canine-c online free url in huggingface.co:

https://huggingface.co/google/canine-c

canine-c install

canine-c is an open source model from GitHub that offers a free installation service, and any user can find canine-c on GitHub to install. At the same time, huggingface.co provides the effect of canine-c install, users can directly use canine-c installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

canine-c install url in huggingface.co:

https://huggingface.co/google/canine-c

Url of canine-c

canine-c huggingface.co Url

Provider of canine-c huggingface.co

google
ORGANIZATIONS

Other API from google

huggingface.co

Total runs: 10.0M
Run Growth: -2.5M
Growth Rate: -25.39%
Updated:July 21 2026
huggingface.co

Total runs: 5.2M
Run Growth: -454.3K
Growth Rate: -8.74%
Updated:July 21 2026
huggingface.co

Total runs: 5.1M
Run Growth: 1.0M
Growth Rate: 19.82%
Updated:April 04 2025
huggingface.co

Total runs: 3.9M
Run Growth: 997.1K
Growth Rate: 25.30%
Updated:July 21 2026
huggingface.co

Total runs: 3.3M
Run Growth: 392.1K
Growth Rate: 12.03%
Updated:July 21 2026
huggingface.co

Total runs: 1.8M
Run Growth: -406.6K
Growth Rate: -22.46%
Updated:August 14 2025
huggingface.co

Total runs: 1.7M
Run Growth: -78.2K
Growth Rate: -4.70%
Updated:July 17 2023
huggingface.co

Total runs: 1.3M
Run Growth: -1.0M
Growth Rate: -77.79%
Updated:March 22 2025
huggingface.co

Total runs: 1.2M
Run Growth: -70.5K
Growth Rate: -5.71%
Updated:March 22 2025
huggingface.co

Total runs: 845.8K
Run Growth: -8.8K
Growth Rate: -1.04%
Updated:March 22 2025
huggingface.co

Total runs: 740.6K
Run Growth: -75.3K
Growth Rate: -10.17%
Updated:July 16 2026
huggingface.co

Total runs: 707.7K
Run Growth: 151.3K
Growth Rate: 21.37%
Updated:August 28 2024
huggingface.co

Total runs: 614.7K
Run Growth: 312.9K
Growth Rate: 50.90%
Updated:September 18 2023
huggingface.co

Total runs: 604.9K
Run Growth: -238.3K
Growth Rate: -39.39%
Updated:February 29 2024
huggingface.co

Total runs: 600.8K
Run Growth: -321.1K
Growth Rate: -53.43%
Updated:October 11 2023
huggingface.co

Total runs: 517.7K
Run Growth: -23.4K
Growth Rate: -4.51%
Updated:July 17 2023
huggingface.co

Total runs: 505.3K
Run Growth: 218.9K
Growth Rate: 43.32%
Updated:October 29 2025
huggingface.co

Total runs: 501.5K
Run Growth: 177.9K
Growth Rate: 35.47%
Updated:August 28 2024
huggingface.co

Total runs: 489.4K
Run Growth: -566.8K
Growth Rate: -115.82%
Updated:July 16 2026
huggingface.co

Total runs: 373.8K
Run Growth: -28.3K
Growth Rate: -7.58%
Updated:July 16 2026
huggingface.co

Total runs: 310.0K
Run Growth: -13.5K
Growth Rate: -4.37%
Updated:January 25 2023
huggingface.co

Total runs: 284.3K
Run Growth: 7.7K
Growth Rate: 2.71%
Updated:August 08 2024
huggingface.co

Total runs: 248.9K
Run Growth: -64.7K
Growth Rate: -25.99%
Updated:January 25 2023
huggingface.co

Total runs: 232.1K
Run Growth: 47.8K
Growth Rate: 20.58%
Updated:November 27 2023
huggingface.co

Total runs: 223.6K
Run Growth: -1.1M
Growth Rate: -491.64%
Updated:August 14 2025
huggingface.co

Total runs: 216.2K
Run Growth: 2.6K
Growth Rate: 1.20%
Updated:May 27 2026
huggingface.co

Total runs: 200.6K
Run Growth: 36.1K
Growth Rate: 17.98%
Updated:July 03 2023
huggingface.co

Total runs: 165.3K
Run Growth: 55.3K
Growth Rate: 33.49%
Updated:July 28 2026
huggingface.co

Total runs: 160.8K
Run Growth: -1.6K
Growth Rate: -0.99%
Updated:November 28 2023
huggingface.co

Total runs: 160.2K
Run Growth: -24.2K
Growth Rate: -15.14%
Updated:January 25 2023
huggingface.co

Total runs: 131.7K
Run Growth: -101.0K
Growth Rate: -76.69%
Updated:January 25 2023
huggingface.co

Total runs: 125.3K
Run Growth: 64.6K
Growth Rate: 51.57%
Updated:September 27 2024
huggingface.co

Total runs: 114.6K
Run Growth: 49.7K
Growth Rate: 43.40%
Updated:August 28 2024
huggingface.co

Total runs: 109.7K
Run Growth: 6.7K
Growth Rate: 6.06%
Updated:September 27 2024
huggingface.co

Total runs: 100.5K
Run Growth: -196.9K
Growth Rate: -196.04%
Updated:July 16 2026
huggingface.co

Total runs: 88.0K
Run Growth: 432
Growth Rate: 0.49%
Updated:May 27 2022
huggingface.co

Total runs: 83.9K
Run Growth: -16.3K
Growth Rate: -19.47%
Updated:July 16 2026
huggingface.co

Total runs: 75.6K
Run Growth: -10.2K
Growth Rate: -13.46%
Updated:August 08 2024