Text Classification
Transformers
Safetensors
bert
biology
regression
protein-expression
text-embeddings-inference
Instructions to use Ailin0103/CodonBERT-Cambray-expression-regression with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ailin0103/CodonBERT-Cambray-expression-regression with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Ailin0103/CodonBERT-Cambray-expression-regression")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Ailin0103/CodonBERT-Cambray-expression-regression") model = AutoModelForSequenceClassification.from_pretrained("Ailin0103/CodonBERT-Cambray-expression-regression", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from Ailin0103/CodonBERT-Cambray-expression-regression: direct link, hf CLI and curl.
- Browser
- Download file 3.9 kB
-
https://huggingface.co/Ailin0103/CodonBERT-Cambray-expression-regression/resolve/main/tokenizer.json
- Command line
-
hf download hf://Ailin0103/CodonBERT-Cambray-expression-regression/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/Ailin0103/CodonBERT-Cambray-expression-regression/resolve/main/tokenizer.json
3.9 kB
| { | |
| "version": "1.0", | |
| "truncation": { | |
| "direction": "Right", | |
| "max_length": 64, | |
| "strategy": "LongestFirst", | |
| "stride": 0 | |
| }, | |
| "padding": null, | |
| "added_tokens": [ | |
| { | |
| "id": 0, | |
| "content": "[PAD]", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 1, | |
| "content": "[UNK]", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 2, | |
| "content": "[CLS]", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 3, | |
| "content": "[SEP]", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 4, | |
| "content": "[MASK]", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| } | |
| ], | |
| "normalizer": { | |
| "type": "BertNormalizer", | |
| "clean_text": true, | |
| "handle_chinese_chars": true, | |
| "strip_accents": null, | |
| "lowercase": false | |
| }, | |
| "pre_tokenizer": { | |
| "type": "BertPreTokenizer" | |
| }, | |
| "post_processor": { | |
| "type": "TemplateProcessing", | |
| "single": [ | |
| { | |
| "SpecialToken": { | |
| "id": "[CLS]", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "Sequence": { | |
| "id": "A", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "SpecialToken": { | |
| "id": "[SEP]", | |
| "type_id": 0 | |
| } | |
| } | |
| ], | |
| "pair": [ | |
| { | |
| "SpecialToken": { | |
| "id": "[CLS]", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "Sequence": { | |
| "id": "A", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "SpecialToken": { | |
| "id": "[SEP]", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "Sequence": { | |
| "id": "B", | |
| "type_id": 1 | |
| } | |
| }, | |
| { | |
| "SpecialToken": { | |
| "id": "[SEP]", | |
| "type_id": 1 | |
| } | |
| } | |
| ], | |
| "special_tokens": { | |
| "[CLS]": { | |
| "id": "[CLS]", | |
| "ids": [ | |
| 2 | |
| ], | |
| "tokens": [ | |
| "[CLS]" | |
| ] | |
| }, | |
| "[SEP]": { | |
| "id": "[SEP]", | |
| "ids": [ | |
| 3 | |
| ], | |
| "tokens": [ | |
| "[SEP]" | |
| ] | |
| } | |
| } | |
| }, | |
| "decoder": { | |
| "type": "WordPiece", | |
| "prefix": "##", | |
| "cleanup": true | |
| }, | |
| "model": { | |
| "type": "WordPiece", | |
| "unk_token": "[UNK]", | |
| "continuing_subword_prefix": "##", | |
| "max_input_chars_per_word": 100, | |
| "vocab": { | |
| "[PAD]": 0, | |
| "[UNK]": 1, | |
| "[CLS]": 2, | |
| "[SEP]": 3, | |
| "[MASK]": 4, | |
| "AAA": 5, | |
| "AAU": 6, | |
| "AAG": 7, | |
| "AAC": 8, | |
| "AUA": 9, | |
| "AUU": 10, | |
| "AUG": 11, | |
| "AUC": 12, | |
| "AGA": 13, | |
| "AGU": 14, | |
| "AGG": 15, | |
| "AGC": 16, | |
| "ACA": 17, | |
| "ACU": 18, | |
| "ACG": 19, | |
| "ACC": 20, | |
| "UAA": 21, | |
| "UAU": 22, | |
| "UAG": 23, | |
| "UAC": 24, | |
| "UUA": 25, | |
| "UUU": 26, | |
| "UUG": 27, | |
| "UUC": 28, | |
| "UGA": 29, | |
| "UGU": 30, | |
| "UGG": 31, | |
| "UGC": 32, | |
| "UCA": 33, | |
| "UCU": 34, | |
| "UCG": 35, | |
| "UCC": 36, | |
| "GAA": 37, | |
| "GAU": 38, | |
| "GAG": 39, | |
| "GAC": 40, | |
| "GUA": 41, | |
| "GUU": 42, | |
| "GUG": 43, | |
| "GUC": 44, | |
| "GGA": 45, | |
| "GGU": 46, | |
| "GGG": 47, | |
| "GGC": 48, | |
| "GCA": 49, | |
| "GCU": 50, | |
| "GCG": 51, | |
| "GCC": 52, | |
| "CAA": 53, | |
| "CAU": 54, | |
| "CAG": 55, | |
| "CAC": 56, | |
| "CUA": 57, | |
| "CUU": 58, | |
| "CUG": 59, | |
| "CUC": 60, | |
| "CGA": 61, | |
| "CGU": 62, | |
| "CGG": 63, | |
| "CGC": 64, | |
| "CCA": 65, | |
| "CCU": 66, | |
| "CCG": 67, | |
| "CCC": 68 | |
| } | |
| } | |
| } |