Instructions to use CCC-Unito/kenji-endo-0.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CCC-Unito/kenji-endo-0.1 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("CCC-Unito/kenji-endo-0.1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 1,724 Bytes
2540b01 | 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 56 57 58 59 60 61 62 63 64 65 | {
"model_class": "Autoregressive_Model",
"model_config": {
"name": "BabyLM",
"hidden_size": 768,
"ffn_factor": 3.0,
"num_hidden_layers": 12,
"num_attention_heads": 12,
"vocab_size": 32777,
"bos_token_id": 1,
"eos_token_id": 2,
"pad_token_id": 0,
"tie_word_embeddings": false,
"rms_norm_eps": 1e-06,
"attention_type": [],
"max_position_embeddings": 1024,
"block_size_for_attention": 128,
"rope_theta": 10000.0,
"compile_flexattn": false,
"bias": false,
"training_objective": "autoregressive",
"is_causal": true,
"default_layer": {
"attn_impl": "flash",
"sliding_window_size": null,
"positional_encoding": "alibi",
"normalization": "rmsnorm",
"normalization_position": "post",
"ffn_activation": "swiglu",
"hooks": {}
},
"custom_layers": {}
},
"training": {
"optimizer": "muon",
"lr_scheduling": true,
"lr": 0.0008,
"final_lr": 8e-05,
"hold_steps": 0.013,
"weight_decay": 0.01,
"scheduler": "custom",
"gradient_clip_val": 1.0,
"warmup_steps": 0.029,
"max_epochs": 10,
"accumulate_grad_batches": 5,
"seed": 27,
"save_every_n_steps": 8000,
"checkpoint_name": "Baby_modello_di_prova_28L"
},
"tokenizer": {
"type": "huggingface",
"pretrained_name": "sapienzanlp/Minerva-350M-base-v1.0",
"varlen_strategy": "unpadding"
},
"data": {
"data_root": "/home/matteo/BabyLM/mdat_baby_finale/",
"batch_size": 36,
"num_workers": 1,
"mdat_strategy": "MinervaSpecialTokens",
"mdat_view": null
},
"save_dir": "./checkpoints_baby",
"wandb_project": "BabyLM",
"wandb_run_name": "Baby-Test-Model-Piccolo"
} |