Token Classification
Transformers
Safetensors
Upper Grand Valley Dani
generanno
biology
genomics
eukaryotes
cds
custom-code
custom_code
Instructions to use HuggingFaceBio/Carbon-A-1.2B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use HuggingFaceBio/Carbon-A-1.2B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="HuggingFaceBio/Carbon-A-1.2B", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForTokenClassification model = AutoModelForTokenClassification.from_pretrained("HuggingFaceBio/Carbon-A-1.2B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from HuggingFaceBio/Carbon-A-1.2B: direct link, hf CLI and curl.
- Browser
- Download file 1.26 kB
-
https://huggingface.co/HuggingFaceBio/Carbon-A-1.2B/resolve/main/config.json
- Command line
-
hf download hf://HuggingFaceBio/Carbon-A-1.2B/config.json
-
curl -L -o config.json https://huggingface.co/HuggingFaceBio/Carbon-A-1.2B/resolve/main/config.json
1.26 kB
| { | |
| "architectures": [ | |
| "GenerannoForTokenClassification" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "configuration_generanno.GenerannoConfig", | |
| "AutoModel": "modeling_generanno.GenerannoModel", | |
| "AutoModelForMaskedLM": "modeling_generanno.GenerannoForMaskedLM", | |
| "AutoModelForSequenceClassification": "modeling_generanno.GenerannoForSequenceClassification", | |
| "AutoModelForTokenClassification": "modeling_generanno.GenerannoForTokenClassification" | |
| }, | |
| "id2label": { | |
| "0": "NON_CODING", | |
| "1": "CDS" | |
| }, | |
| "label2id": { | |
| "NON_CODING": 0, | |
| "CDS": 1 | |
| }, | |
| "k": 6, | |
| "num_prediction_heads": 2, | |
| "bos_token_id": 1, | |
| "eos_token_id": 2, | |
| "pad_token_id": 3, | |
| "mask_token_id": 4, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 5632, | |
| "max_position_embeddings": 16384, | |
| "mlp_bias": false, | |
| "model_type": "generanno", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 26, | |
| "num_key_value_heads": 4, | |
| "pretraining_tp": 1, | |
| "rms_norm_eps": 1e-05, | |
| "rope_scaling": null, | |
| "rope_theta": 500000.0, | |
| "tie_word_embeddings": false, | |
| "dtype": "float32", | |
| "transformers_version": "4.56.0", | |
| "use_cache": true, | |
| "vocab_size": 4128 | |
| } | |