ereniko commited on
Commit
9981245
·
verified ·
1 Parent(s): 030a3c5

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +122 -17
README.md CHANGED
@@ -20,42 +20,119 @@ pipeline_tag: text-generation
20
  library_name: transformers
21
  ---
22
 
23
- # Ivme-Coder-v1 (codename: Otter 1)
24
 
25
- A ~50M parameter, from-scratch, decoder-only Python code model. First model in
26
- IvmeLabs' genre-specific ("animal") line, as distinct from the general-purpose
27
- ("fruit") line represented by Ivme-Conversate.
 
 
 
 
28
 
29
  ## Model Details
30
 
31
  | Parameter | Value |
32
  |---|---|
33
- | Architecture | Decoder-only transformer, dense |
34
  | Parameters | ~50M |
35
  | Layers | 12 |
36
  | Hidden dim | 512 |
37
- | Attention heads | 8, full attention |
 
38
  | Context length | 1024 tokens |
39
- | Vocab size | 16000 (custom BPE, trained on Python code) |
40
- | Positional encoding | RoPE (θ=10000) |
41
  | Normalization | RMSNorm (pre-norm) |
42
  | Embeddings | Tied input/output |
43
- | Optimizer | Muon (body) + AdamW (embeddings/norms) |
 
 
 
 
44
 
45
  ## Training
46
 
47
- - **Data**: `bigcode/starcoderdata`, Python config, filtered (length/quality heuristics), ~2.5B tokens
48
- - **Schedule**: Warmup-Stable-Decay (WSD), 12,715 steps
49
- - **Final weights**: EMA (β=0.999) of the training trajectory
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
  ## Limitations
52
 
53
- - Base model only, not instruction tuned - completes code, does not follow instructions
54
- - Learns Python syntax and idiom well; does **not** reliably produce logically
55
- correct or semantically meaningful code. Expect plausible-looking but often
56
- incorrect implementations (e.g. wrong recursive logic, off-topic docstrings).
57
  - 1024 token context window
58
- - Python only
 
 
 
59
 
60
  ## Inference
61
 
@@ -78,3 +155,31 @@ print(tokenizer.decode(out[0], skip_special_tokens=True))
78
  ```
79
 
80
  `trust_remote_code=True` is required (custom architecture: RoPE + SwiGLU + RMSNorm dense decoder).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  library_name: transformers
21
  ---
22
 
23
+ # İvme-Coder-v1 (codename: Otter 1)
24
 
25
+ ![Ivme-Coder-v1](https://cdn-uploads.huggingface.co/production/uploads/670562d6ac129959c16f84d4/9oWY_UmFyQ297XmaZEK7G.png)
26
+
27
+ **İvme** (Turkish: *acceleration*) is a series of stupidly small language models built to punch above their weight. Ivme-Coder-v1 is the first release in a new branch of the family: a ~50M parameter decoder-only model trained from scratch on Python source code.
28
+
29
+ Every İvme model released so far has carried a fruit codename — Conversate is "Apple." That naming convention was intentional: it marked the general-purpose, architecture-agnostic line, models meant to demonstrate what a given training recipe could do on open-domain text regardless of downstream task. Coder breaks that convention on purpose. It is the first İvme model built for a single, specific discipline rather than general fluency, and it carries the first codename from a new line reserved for that kind of model: **Otter 1**. Where the fruit line asks "how much can a tiny model absorb about language in general," the animal line asks "how much can a tiny model absorb about one thing in particular." Otter felt right for the first entry in that line — a small, unglamorous animal known for exactly one thing it does very well: tool use.
30
+
31
+ ---
32
 
33
  ## Model Details
34
 
35
  | Parameter | Value |
36
  |---|---|
37
+ | Architecture | Decoder-only transformer, dense (no loops, no exotic recurrence) |
38
  | Parameters | ~50M |
39
  | Layers | 12 |
40
  | Hidden dim | 512 |
41
+ | FFN | SwiGLU (~2.67× expansion) |
42
+ | Attention heads | 8, full attention (no GQA) |
43
  | Context length | 1024 tokens |
44
+ | Vocab size | 16,000 (custom byte-level BPE, trained on Python source) |
45
+ | Positional encoding | RoPE (θ=10,000) |
46
  | Normalization | RMSNorm (pre-norm) |
47
  | Embeddings | Tied input/output |
48
+ | Biases | None |
49
+
50
+ Coder's architecture deliberately mirrors the same core recipe as the Conversate line — RoPE, SwiGLU, RMSNorm, tied embeddings, Muon-optimized body weights. The point of keeping the recipe constant across both lines is to isolate what changes with domain-specific data and a narrower target distribution, not to introduce a second set of untested architectural choices at the same time.
51
+
52
+ ---
53
 
54
  ## Training
55
 
56
+ ### Data
57
+
58
+ Coder was trained on a filtered slice of [`bigcode/starcoderdata`](https://huggingface.co/datasets/bigcode/starcoderdata) (Python configuration only), the same decontaminated, permissively-licensed corpus underlying the original StarCoder models. Raw files were passed through length and quality heuristics — dropping empty or oversized files, minified or generated-looking source, and files with abnormal symbol density — before being packed into fixed-length training shards.
59
+
60
+ | Setting | Value |
61
+ |---|---|
62
+ | Source | `bigcode/starcoderdata`, Python config |
63
+ | Filtering | Length caps, minified/generated-file heuristics, symbol-density threshold |
64
+ | Total tokens | ~2.5B |
65
+
66
+ Unlike a general-text model, code has a far narrower and more rigid target distribution — Python's syntax is small, unambiguous, and repetitive relative to open-domain English. That changes the token math: Coder deliberately targets well past strict compute-optimal scaling for a model this size, but nowhere near the scale a general-purpose model in the same parameter class would need, since there is comparatively little left to learn once syntax, common idioms, and standard-library usage patterns are well covered.
67
+
68
+ ### Hyperparameters
69
+
70
+ | Setting | Value |
71
+ |---|---|
72
+ | Optimizer | Muon (body weights) + AdamW (embeddings, norms) |
73
+ | LR schedule | Warmup–Stable–Decay (WSD) |
74
+ | Weight decay | 0.1 |
75
+ | Gradient clipping | 1.0 |
76
+ | Batch size | 16 sequences × 12 grad-accum steps × 1024 tokens (196,608 tokens/step) |
77
+ | Total steps | 12,715 |
78
+ | Precision | bfloat16 (autocast), fp32 stored weights |
79
+ | Compilation | torch.compile |
80
+ | Final weights | EMA (β=0.999) of the training trajectory |
81
+
82
+ ### Hardware
83
+
84
+ Trained on a single cloud GPU via Google Colab, sustaining a stable ~517,000 tokens/second throughout training — the full run completed in under two hours.
85
+
86
+ ---
87
+
88
+ ## Does it actually write code?
89
+
90
+ Short answer: it writes *code-shaped* text, reliably. It does not reliably write *correct* code. At 50M parameters and ~2.5B training tokens, Coder has clearly internalized Python's surface structure — indentation, control flow, function and class definitions, docstring conventions, common standard-library idioms — but it has not learned to reason about what a function is supposed to compute. Expect syntactically valid, plausible-looking completions that are frequently wrong on inspection: incorrect recursive logic, docstrings that don't match the implementation below them, redefinitions of the same method twice in one class, and functions that trail off into a related-but-different function rather than terminating cleanly.
91
+
92
+ This is the expected and honest ceiling for a model this size trained this way — it is closer to a highly fluent autocomplete for Python's shape than to a coding assistant, and it should be treated accordingly.
93
+
94
+ Sample output, EMA weights, temperature 0.8, top_k 50:
95
+
96
+ **Prompt:** `def fibonacci(n):`
97
+
98
+ > def fibonacci(n):
99
+ > # Fibonacci for 5.2
100
+ > if n < 3:
101
+ > return n
102
+ >
103
+ > if n % 2 == 0:
104
+ > return n
105
+ >
106
+ > return n // 2
107
+ >
108
+ > from collections import OrderedDict # For compatibility with Python 2.6
109
+ >
110
+ > def reverse(self, n):
111
+ > # Fibonacci for 5.2
112
+ > if n > 3:
113
+ > return n
114
+ >
115
+ > if n % 2 == 0:
116
+ > return n
117
+ >
118
+ > if n % 3 == 0:
119
+ > return n
120
+ >
121
+ > return n // 4
122
+
123
+ The indentation, control-flow shape, and import placement are all locally plausible. The logic is not — this is not a working Fibonacci implementation, and the model has no way to know that. This gap between fluency and correctness is the central thing to understand about Coder before using it for anything beyond exploration.
124
+
125
+ ---
126
 
127
  ## Limitations
128
 
129
+ - Base model only, not instruction tuned — completes code, does not follow instructions
130
+ - Learns Python syntax and idiom well; does **not** reliably produce logically correct or semantically meaningful code
 
 
131
  - 1024 token context window
132
+ - Python only — no other languages in the training mix
133
+ - No retrieval-augmented or fine-tuned variant currently exists; this is a raw pretraining checkpoint
134
+
135
+ ---
136
 
137
  ## Inference
138
 
 
155
  ```
156
 
157
  `trust_remote_code=True` is required (custom architecture: RoPE + SwiGLU + RMSNorm dense decoder).
158
+
159
+ **Note on batch generation:** use left-padding (`tokenizer.padding_side = "left"`) — the model does not use an explicit attention mask over padded positions, so right-padding within a batch will give incorrect results.
160
+
161
+ ---
162
+
163
+ ## What's Next
164
+
165
+ Coder v1 establishes the animal line and the basic recipe: same architecture family as the fruit line, redirected at a single narrow domain. Future directions under consideration include a larger token budget to test where the syntax-fluency ceiling actually sits for a model this size, an instruction-tuned variant for actual completion/chat use rather than raw continuation, and eventually a second animal-line entry in a different narrow domain to test how well the recipe generalizes across disciplines, not just across scale.
166
+
167
+ You can check our other upcoming models on our organization card!
168
+
169
+ ---
170
+
171
+ ## Citation
172
+
173
+ ```bibtex
174
+ @misc{ivme-coder-v1,
175
+ author = {IvmeLabs},
176
+ title = {İvme-Coder-v1 (Otter 1)},
177
+ year = {2026},
178
+ publisher = {Hugging Face},
179
+ url = {https://huggingface.co/IvmeLabs/Ivme-Coder-v1}
180
+ }
181
+ ```
182
+
183
+ ---
184
+
185
+ *Built by IvmeLabs. Small models, deliberate choices.*