Fill-Mask
Transformers
PyTorch
caduceus
biology
genomics
DNA
bryophytes
masked-language-modeling
mamba2
custom_code
Instructions to use bryocad/BryoCAD-Small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bryocad/BryoCAD-Small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="bryocad/BryoCAD-Small", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("bryocad/BryoCAD-Small", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,322 Bytes
4c764b3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | {
"_name_or_path": "/ceph/sharedfs/work/TYW_Lab/yenmr/projects/BryoCAD/warehouse/model/PlantCAD2-Small",
"architectures": [
"CaduceusForMaskedLM"
],
"auto_map": {
"AutoConfig": "configuration_caduceus.CaduceusConfig",
"AutoModel": "modeling_caduceus.Caduceus",
"AutoModelForMaskedLM": "modeling_caduceus.CaduceusForMaskedLM",
"AutoModelForSequenceClassification": "modeling_caduceus.CaduceusForSequenceClassification"
},
"bidirectional": true,
"bidirectional_strategy": "add",
"bidirectional_weight_tie": true,
"complement_map": {
"0": 0,
"1": 1,
"2": 2,
"3": 6,
"4": 5,
"5": 4,
"6": 3,
"7": 7
},
"d_intermediate": 0,
"d_model": 768,
"fused_add_norm": true,
"initializer_cfg": {
"initializer_range": 0.02,
"n_residuals_per_layer": 1,
"rescale_prenorm_residual": true
},
"model_type": "caduceus",
"n_layer": 24,
"norm_epsilon": 1e-05,
"pad_token_id": -100,
"pad_vocab_size_multiple": 8,
"rcps": true,
"residual_in_fp32": false,
"rms_norm": true,
"ssm_cfg": {
"bias": false,
"conv_bias": true,
"d_conv": 4,
"d_state": 64,
"dt_init_floor": 0.0001,
"dt_max": 0.1,
"dt_min": 0.001,
"expand": 2
},
"torch_dtype": "float32",
"transformers_version": "4.49.0",
"vocab_size": 8
}
|