atrost commited on
Commit
f5ebd00
·
verified ·
1 Parent(s): 03c3f6b

Publish native Llama MatFormer M conversion from cb222bb9

Browse files
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ language:
4
+ - en
5
+ datasets:
6
+ - nvidia/Nemotron-ClimbMix
7
+ tags:
8
+ - llama
9
+ - matformer
10
+ - matformer-m
11
+ - vllm
12
+ - causal-lm
13
+ - pretraining
14
+ - climbmix
15
+ ---
16
+
17
+ # atrost/climbmix-matformer-353m-1p2b-h100-m-vllm
18
+
19
+ Native `LlamaForCausalLM` conversion of `atrost/climbmix-matformer-353m-1p2b-h100-m`.
20
+
21
+ The source checkpoint was an extracted fixed-size MatFormer `M` submodel.
22
+ Because that submodel has fixed attention and MLP dimensions, its tensors can be
23
+ remapped losslessly into the standard Hugging Face Llama layout. This repo does
24
+ not require remote code and is intended to load through vLLM's native Llama path.
25
+
26
+ ## Source
27
+
28
+ - Source checkpoint: `atrost/climbmix-matformer-353m-1p2b-h100-m`
29
+ - Source revision: `cb222bb9353c30c372c7478533a5cc6f9feac1d7`
30
+ - Local parity max logits diff before save: `0.000e+00`
31
+
32
+ ## Loading
33
+
34
+ ```python
35
+ from transformers import AutoModelForCausalLM, AutoTokenizer
36
+
37
+ repo_id = "atrost/climbmix-matformer-353m-1p2b-h100-m-vllm"
38
+ tokenizer = AutoTokenizer.from_pretrained(repo_id)
39
+ model = AutoModelForCausalLM.from_pretrained(repo_id, torch_dtype="auto")
40
+ ```
41
+
42
+ ```python
43
+ from vllm import LLM
44
+
45
+ llm = LLM(model="atrost/climbmix-matformer-353m-1p2b-h100-m-vllm")
46
+ ```
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "LlamaForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 50256,
8
+ "dtype": "float32",
9
+ "eos_token_id": 50256,
10
+ "head_dim": 80,
11
+ "hidden_act": "silu",
12
+ "hidden_size": 1280,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 1024,
15
+ "max_position_embeddings": 2048,
16
+ "mlp_bias": false,
17
+ "model_type": "llama",
18
+ "num_attention_heads": 4,
19
+ "num_hidden_layers": 12,
20
+ "num_key_value_heads": 2,
21
+ "pad_token_id": 50256,
22
+ "pretraining_tp": 1,
23
+ "rms_norm_eps": 1e-05,
24
+ "rope_parameters": {
25
+ "rope_theta": 10000.0,
26
+ "rope_type": "default"
27
+ },
28
+ "tie_word_embeddings": false,
29
+ "transformers_version": "5.7.0",
30
+ "use_cache": true,
31
+ "vocab_size": 50304
32
+ }
generation_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "pad_token_id": 50256,
8
+ "transformers_version": "5.7.0",
9
+ "use_cache": true
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f89bb749685f1e0cce1e96dbcd85acd7d4365eb5850dc7e3224bb546685e16c
3
+ size 762979472
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|endoftext|>",
5
+ "eos_token": "<|endoftext|>",
6
+ "errors": "replace",
7
+ "is_local": false,
8
+ "local_files_only": false,
9
+ "model_max_length": 2048,
10
+ "pad_token": "<|endoftext|>",
11
+ "tokenizer_class": "GPT2Tokenizer",
12
+ "unk_token": "<|endoftext|>"
13
+ }