ereniko commited on
Commit
715e8bc
·
verified ·
1 Parent(s): 5b5df3e

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,27 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ CaaLM-v1-BF16.gguf filter=lfs diff=lfs merge=lfs -text
37
+ CaaLM-v1-F16.gguf filter=lfs diff=lfs merge=lfs -text
38
+ CaaLM-v1-F32.gguf filter=lfs diff=lfs merge=lfs -text
39
+ CaaLM-v1-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ CaaLM-v1-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
41
+ CaaLM-v1-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
42
+ CaaLM-v1-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ CaaLM-v1-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
44
+ CaaLM-v1-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
45
+ CaaLM-v1-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ CaaLM-v1-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
47
+ CaaLM-v1-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
48
+ CaaLM-v1-Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
49
+ CaaLM-v1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
50
+ CaaLM-v1-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
51
+ CaaLM-v1-Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
52
+ CaaLM-v1-Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
53
+ CaaLM-v1-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
54
+ CaaLM-v1-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
55
+ CaaLM-v1-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
56
+ CaaLM-v1-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
57
+ CaaLM-v1-TQ1_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ CaaLM-v1-TQ2_0.gguf filter=lfs diff=lfs merge=lfs -text
59
+ CaaLM-v1-hf/tokenizer.json filter=lfs diff=lfs merge=lfs -text
CaaLM-v1-BF16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ad48890148e68b2f1eabfdce3107a51605dbd6726c3de159406926cb59b2c170
3
+ size 3093666720
CaaLM-v1-F16.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15de38d7444b895698da4c28170b0900d2fbe4530d1574ae380bebd6222186d6
3
+ size 3093666720
CaaLM-v1-F32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c53e8e1de9d214d45fa1dde7c9c16aaf7f61ff3c44054441344839d1afdba595
3
+ size 6180805536
CaaLM-v1-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:637a286107c8bc6e7f57d11acee08426d64e8c11d79d72f9014a789e5404bcb4
3
+ size 776661408
CaaLM-v1-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb1017fe596eee7b9f4cb79267146c34143951ec998ceedf4ed460dc5b3f1493
3
+ size 762404256
CaaLM-v1-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a741e3c99df3aec20aad749677a5e9498b3e1df206d97d3980315b5e1fd4e60c
3
+ size 941489568
CaaLM-v1-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d830eaca592e00908cbb42cafa2edd0ddf9aff75996ee0c8ecb49c9898bd37e
3
+ size 902180256
CaaLM-v1-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22ea5510a8c42e4210252b783fd8b020df8f61b04dad3f43848bddc71d5c76c8
3
+ size 676302240
CaaLM-v1-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65675a40ae0fd3db13c5faa238110e7c519e134958b43b4e5e9ea1ba2a84038a
3
+ size 880160160
CaaLM-v1-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:563d213ecd2ed96a53ebac0698c0a7e529a008c5eaa58ce26c74434d560299f9
3
+ size 824176032
CaaLM-v1-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f568e4d5303f2326f509873918cd4073c2009a776762138d4a5f629d4ba59f12
3
+ size 760941984
CaaLM-v1-Q4_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fcfabc27f1665248e40be0ac9bba2fb6f549f7f39095b9001eba9e819296a57
3
+ size 934952352
CaaLM-v1-Q4_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e770dccda52c1c356b380e91c433a48ba6f244683ad78a177a09edbd29373cc4
3
+ size 1016839584
CaaLM-v1-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:417be2dd59151ec03bebbc4b5ee2dd3f6203fb177dfa46d381c253313e2c21df
3
+ size 986045856
CaaLM-v1-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:86a5ce7d2642a9ef0b119bc6ba6f553c78b50388fc59615b8d569e30ddcd721d
3
+ size 940309920
CaaLM-v1-Q5_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:14cb6723027ffc80a94695b93fe71f316e55edd70da7724b8520fc1ab581f401
3
+ size 1098726816
CaaLM-v1-Q5_1.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:71b10e4d48794bf949ac329a49b1a8f5209448a5c6e0197128a6586ad60af0b7
3
+ size 1180614048
CaaLM-v1-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a62887b0c1184c73c7d7b6dd274fb26a199aea7bc347e38da440e81f6e6b344
3
+ size 1125047712
CaaLM-v1-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b7690f039f99ad201333eaa41a49fae16a8aa5305671e5345237053eb1d7f668
3
+ size 1098726816
CaaLM-v1-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52ec2bb60a50bce175b70fd00e3441904c5fa1eb959f309a1667d700b1ff10dc
3
+ size 1272737184
CaaLM-v1-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b7bd9cbb2581deaec11488159e255de890a674057ac453eaded0860b20a626f
3
+ size 1646570400
CaaLM-v1-TQ1_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:df00fdc437aa7d426d0162aa2e01e00cf63341079c2ebcbb524954b8cef58e32
3
+ size 474336672
CaaLM-v1-TQ2_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e3c8b0228432faded236936965d36958a9462ceb28d2bf6966872aa123cee6a
3
+ size 535752096
CaaLM-v1-hf/.gitattributes ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
CaaLM-v1-hf/README.md ADDED
@@ -0,0 +1,231 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - code
7
+ - execution
8
+ - prediction
9
+ - language-generalization
10
+ - no-compiler
11
+ - python
12
+ - javascript
13
+ - lua
14
+ - cobol
15
+ - synthetic-languages
16
+ - transformers
17
+ - qwen2
18
+ pipeline_tag: text-generation
19
+ base_model: Qwen/Qwen2.5-1.5B
20
+ library_name: transformers
21
+ ---
22
+
23
+ # CaaLM/CaaLM-v1
24
+
25
+
26
+ ![CaaLM-v1 Logo](https://cdn-uploads.huggingface.co/production/uploads/670562d6ac129959c16f84d4/lsYHkWaSlewMkpgEaOJNP.png)
27
+
28
+ ## What is this?
29
+
30
+ CaaLM (Code as a Language Model) is a 1.5B parameter model that predicts the output of code — without a compiler, runtime, or interpreter.
31
+
32
+ You give it code. It tells you what it would print.
33
+
34
+ The interesting part: it was never trained on a fixed set of languages. Instead, it was trained on real languages (Python, JavaScript, Lua, COBOL) alongside 200 synthetically generated fake programming languages — each with randomized syntax but consistent semantics. The goal was to teach the model what *execution* means, not what any specific language looks like.
35
+
36
+ This means it can predict the output of languages it has never seen before.
37
+
38
+ ## Performance
39
+
40
+ ![Benchmark_by_Category](https://cdn-uploads.huggingface.co/production/uploads/670562d6ac129959c16f84d4/AZhDOGagSMRSNQmFu9bgC.png)
41
+
42
+ ![Real vs Novel Fake Languages](https://cdn-uploads.huggingface.co/production/uploads/670562d6ac129959c16f84d4/HghKHvXpx-Ddta8on-WqV.png)
43
+
44
+ **Overall: 96.2% (50/52 tests)**
45
+
46
+ | Category | Accuracy | Passed/Total |
47
+ |---|---|---|
48
+ | Real: Python | 100% | 10/10 |
49
+ | Real: JavaScript | 100% | 8/8 |
50
+ | Real: Lua | 100% | 6/6 |
51
+ | Real: COBOL | 75% | 3/4 |
52
+ | Novel Fake: Tier 1 (assign + print) | 100% | 8/8 |
53
+ | Novel Fake: Tier 2 (conditionals) | 86% | 6/7 |
54
+ | Novel Fake: Tier 3 (loops) | 100% | 4/4 |
55
+ | Edge Cases | 100% | 5/5 |
56
+
57
+ The novel fake language tests use languages that were never seen during training — completely invented syntax like `SCRIBBLE @x BECOMES 7` or `WONDER n > 10`. The model infers semantics from context and gets them right.
58
+
59
+ ### Known Failures
60
+
61
+ Two failures in the benchmark, both explainable:
62
+
63
+ - **COBOL zero-padding** — predicted `08` instead of `0008`. Got the value right, missed the `PIC 9(4)` padding format. Data consistency issue.
64
+ - **If-without-else** — when a conditional has no else branch and the condition is false, the correct output is empty. The model predicted `NO`, hallucinating an else branch. Most training data had if/else pairs so it defaulted to that pattern.
65
+
66
+ ## How It Works
67
+
68
+ Input format:
69
+ ```
70
+ Code:
71
+ <your code here>
72
+
73
+ Output:
74
+ ```
75
+
76
+ The model completes the `Output:` section with the predicted stdout.
77
+
78
+ ### Example — Real Language
79
+
80
+ ```
81
+ Code:
82
+ a = 10
83
+ b = 20
84
+ print(a + b)
85
+
86
+ Output:
87
+ 30
88
+ ```
89
+
90
+ ### Example — Novel Fake Language (never seen during training)
91
+
92
+ ```
93
+ Code:
94
+ SCRIBBLE @x BECOMES 7
95
+ SCRIBBLE @y BECOMES 3
96
+ YELL @x + @y
97
+
98
+ Output:
99
+ 10
100
+ ```
101
+
102
+ ```
103
+ Code:
104
+ BIND n TO 15
105
+ WONDER n > 10
106
+ SHOUT YES
107
+ STOP
108
+
109
+ Output:
110
+ YES
111
+ ```
112
+
113
+ ## Quick Start
114
+
115
+ ```python
116
+ from transformers import AutoModelForCausalLM, AutoTokenizer
117
+ import torch
118
+
119
+ model = AutoModelForCausalLM.from_pretrained(
120
+ "CaaLM/CaaLM-v1",
121
+ torch_dtype=torch.bfloat16,
122
+ device_map="auto"
123
+ )
124
+ tokenizer = AutoTokenizer.from_pretrained("CaaLM/CaaLM-v1")
125
+ model.eval()
126
+
127
+ def predict_output(code: str) -> str:
128
+ prompt = f"Code:\n{code}\n\nOutput:\n"
129
+ inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
130
+
131
+ with torch.no_grad():
132
+ outputs = model.generate(
133
+ **inputs,
134
+ max_new_tokens=128,
135
+ do_sample=False,
136
+ pad_token_id=tokenizer.eos_token_id,
137
+ )
138
+
139
+ return tokenizer.decode(
140
+ outputs[0][inputs.input_ids.shape[1]:],
141
+ skip_special_tokens=True
142
+ ).strip()
143
+
144
+ # Real language
145
+ print(predict_output("a = 6\nb = 7\nprint(a * b)"))
146
+ # → 42
147
+
148
+ # Novel fake language
149
+ print(predict_output("STORE X := 10\nSTORE Y := 5\nSPEAK X + Y"))
150
+ # → 15
151
+ ```
152
+
153
+ ## Training
154
+
155
+ ![Training Summary](https://cdn-uploads.huggingface.co/production/uploads/670562d6ac129959c16f84d4/UXPYmNvYDiIsfHR5JC55n.png)
156
+
157
+ ### Data
158
+
159
+ Training data was split between real and synthetic languages:
160
+
161
+ **Real languages (8,000 examples total, 2,000 each):**
162
+ - Python — clean semantics, baseline
163
+ - JavaScript — type coercion, implicit behaviors
164
+ - Lua — minimal syntax, sparse
165
+ - COBOL — verbose, English-like, no conventional syntax markers
166
+
167
+ **Synthetic languages (120,000 examples total):**
168
+ - 200 procedurally generated fake languages
169
+ - Each language has randomized keywords, operators, variable styles, and block delimiters
170
+ - Semantics are consistent within each language but syntax varies wildly across all 200
171
+ - Programs generated via a Python simulator — outputs are ground truth from actual execution
172
+ - Three complexity tiers: assign+print (30%), conditionals (40%), loops (30%)
173
+
174
+ The spec for each fake language is discarded after data generation. The model only ever sees `(code, output)` pairs — it never gets a syntax guide.
175
+
176
+ ### Configuration
177
+
178
+ - **Base model:** Qwen/Qwen2.5-1.5B (base, not instruct)
179
+ - **Training method:** Full fine-tuning (no LoRA)
180
+ - **Loss masking:** Loss computed on output tokens only, not prompt
181
+ - **Precision:** BF16
182
+ - **Optimizer:** AdamW (lr=2e-5, weight_decay=0.01)
183
+ - **Scheduler:** Cosine with 3% warmup
184
+ - **Batch size:** 8 per device × 4 gradient accumulation = 32 effective
185
+ - **Epochs:** 3
186
+ - **Max sequence length:** 512 tokens
187
+ - **Hardware:** NVIDIA A100 SXM4 40GB
188
+ - **Training time:** 66.5 minutes
189
+ - **Training cost:** ~$0.82
190
+
191
+ ## Supported Operations
192
+
193
+ The model reliably handles:
194
+
195
+ - Variable assignment and arithmetic
196
+ - Print / output statements
197
+ - Conditionals (if/else)
198
+ - While loops with accumulator patterns
199
+ - String output
200
+ - Basic error behavior (empty output when conditions not met)
201
+
202
+ It does not handle: functions, recursion, file I/O, complex data structures, pipes, or multi-line string manipulation. These may work in real languages due to Qwen's pretraining knowledge but are not guaranteed.
203
+
204
+ ## Limitations
205
+
206
+ - No actual code execution — outputs are predictions, not guarantees
207
+ - If-without-else edge cases can produce hallucinated else branches
208
+ - COBOL numeric padding format is inconsistent
209
+ - Long programs (many steps) may degrade in accuracy as state complexity grows
210
+ - Novel fake languages with very unusual execution models (non-linear control flow, stack-based semantics) are untested
211
+ - Context window limits programs to ~512 tokens
212
+
213
+ ## Why
214
+
215
+ The original motivation was to ask: can a language model learn what *execution* means as an abstract concept, independent of any specific language's syntax?
216
+
217
+ The novel fake language results suggest yes, at least for basic programs. The model sees `WONDER x > 10` for the first time and figures out it's a conditional. It sees `SCRIBBLE @x BECOMES 7` and figures out it's assignment. It doesn't know these keywords — it infers them from the structure of the code and the patterns it learned during training.
218
+
219
+ Whether this scales to more complex programs, more alien execution models, or larger languages is an open question.
220
+
221
+ ## Model Lineage
222
+
223
+ CaaLM-v1 is the first model in the CaaLM series, and a spiritual successor to the [LaaLM project](https://huggingface.co/LaaLM).
224
+
225
+ - **LaaLM-v1** — T5-base fine-tuned to simulate Linux shell commands (external state)
226
+ - **LaaLM-exp-v1** — Qwen 3B fine-tuned for conversational Linux terminal emulation (internal state)
227
+ - **CaaLM-v1** — Qwen 1.5B fine-tuned for language-agnostic code output prediction (current)
228
+
229
+ ## License
230
+
231
+ Apache 2.0 (inherited from Qwen 2.5 base model)
CaaLM-v1-hf/config.json ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2ForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": null,
7
+ "dtype": "bfloat16",
8
+ "eos_token_id": 151643,
9
+ "hidden_act": "silu",
10
+ "hidden_size": 1536,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 8960,
13
+ "layer_types": [
14
+ "full_attention",
15
+ "full_attention",
16
+ "full_attention",
17
+ "full_attention",
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention"
42
+ ],
43
+ "max_position_embeddings": 32768,
44
+ "max_window_layers": 28,
45
+ "model_type": "qwen2",
46
+ "num_attention_heads": 12,
47
+ "num_hidden_layers": 28,
48
+ "num_key_value_heads": 2,
49
+ "pad_token_id": 151665,
50
+ "rms_norm_eps": 1e-06,
51
+ "rope_parameters": {
52
+ "rope_theta": 1000000.0,
53
+ "rope_type": "default"
54
+ },
55
+ "sliding_window": null,
56
+ "tie_word_embeddings": true,
57
+ "transformers_version": "5.5.0",
58
+ "unsloth_fixed": true,
59
+ "unsloth_version": "2026.4.6",
60
+ "use_cache": false,
61
+ "use_mrope": false,
62
+ "use_sliding_window": false,
63
+ "vocab_size": 151936
64
+ }
CaaLM-v1-hf/generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "eos_token_id": 151643,
4
+ "max_length": 32768,
5
+ "max_new_tokens": 2048,
6
+ "pad_token_id": 151665,
7
+ "transformers_version": "5.5.0"
8
+ }
CaaLM-v1-hf/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a1f1591e4af5ee1650d6bc3a282c2a5d98cc69ce237108a98a55c78721bc752d
3
+ size 3087467144
CaaLM-v1-hf/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd5948af71b4f56cf697f7580814c7ce8b80595ef985544efcacf716126a2e31
3
+ size 11422356
CaaLM-v1-hf/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "model_max_length": 32768,
10
+ "pad_token": "<|PAD_TOKEN|>",
11
+ "padding_side": "left",
12
+ "split_special_tokens": false,
13
+ "tokenizer_class": "Qwen2Tokenizer",
14
+ "unk_token": null
15
+ }