Instructions to use SynthCode-Project/OLMo2-7B-all-milestones with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SynthCode-Project/OLMo2-7B-all-milestones with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("SynthCode-Project/OLMo2-7B-all-milestones", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download g2_1_oldcode_cm_newcode__edit/500M/config.json from SynthCode-Project/OLMo2-7B-all-milestones: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/SynthCode-Project/OLMo2-7B-all-milestones/resolve/main/g2_1_oldcode_cm_newcode__edit/500M/config.json
- Command line
-
hf download hf://SynthCode-Project/OLMo2-7B-all-milestones/g2_1_oldcode_cm_newcode__edit/500M/config.json
-
curl -L -o config.json https://huggingface.co/SynthCode-Project/OLMo2-7B-all-milestones/resolve/main/g2_1_oldcode_cm_newcode__edit/500M/config.json
646 Bytes
| { | |
| "architectures": [ | |
| "Olmo2ForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 100257, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 100257, | |
| "hidden_act": "silu", | |
| "hidden_size": 4096, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 11008, | |
| "max_position_embeddings": 4096, | |
| "model_type": "olmo2", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 32, | |
| "pad_token_id": 100277, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": null, | |
| "rope_theta": 500000, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "4.57.6", | |
| "use_cache": false, | |
| "vocab_size": 100352 | |
| } | |