File size: 6,718 Bytes
790cf91 9821f9f 790cf91 9821f9f 88ca03e 2c7a884 c811de2 2c7a884 88ca03e |
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 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
---
license: apache-2.0
datasets:
- bigcode/the-stack
language:
- en
- es
base_model:
- openai-community/gpt2
pipeline_tag: text-generation
library_name: pytorch
tags:
- code
- transformers
metrics:
- perplexity
---
# πΈ Yuuki β Code Generation Model Trained on a Phone
> **A multilingual code generation model trained entirely on a smartphone by a single person.**
---
## β οΈ Disclaimer
This is the **best Yuuki model available at this moment**. The latest release will be **Yuuki v0.1** β once that version is published, plans for **v0.2** will begin.
**Important notes:**
- π± This model is being trained **entirely on a smartphone** by a **single person**
- π A **research paper** will be published soon exploring whether it's possible to train a code generation model on a mobile device
- π§ This is an **early-stage research project**, not a production-ready model
---
## π± Best Initial Yuuki Model (Early Snapshot)
This version of Yuuki represents the **strongest initial model** of the Yuuki project so far.
While still early in training, this snapshot already demonstrates that:
- β
The training pipeline is **functional**
- β
The dataset is being **correctly learned**
- β
The model is capable of generating **real, structured code-like outputs**
- β
Early language specialization (due to dataset order) is **clearly observable**
This is not a polished or production-ready model β but it is the **best starting point** Yuuki has achieved, and a **solid foundation** for future versions.
Below are real generation samples from the current checkpoint, shown **transparently without filtering**.
---
## π Comparative Evaluation β Checkpoint 1400 vs Checkpoint 2000
| Metric | Checkpoint 1400 | Checkpoint 2000 |
|--------|-----------------|-----------------|
| **Training Progress** | 1,400 / 37,500 (3.7%) | 2,000 / 37,500 (5.3%) |
| **Avg Loss** | 1.70 β 2.23 | 1.69 β 2.31 |
| **Training Speed** | ~100 sec / step | ~86 sec / step |
| **Model Size** | 988 MB | 988 MB |
| **Evaluated Languages** | Agda, C, Assembly, JS, Python | Agda, C, Assembly, JS, Python |
---
## π§ͺ Language Evaluation Scores
### π Checkpoint 1400
| Language | Score |
|----------|-------|
| Agda | 20 |
| C | 8 |
| Assembly | 2 |
| **Average** | **~10 / 100** |
### π Checkpoint 2000
| Language | Score |
|----------|-------|
| Agda | 55 |
| C | 20 |
| Assembly | 15 |
| **Average** | **24.6 / 100** |
> π **+146% average improvement** despite minimal additional training (β1.6% more steps).
---
## π§ Code Quality Evolution
### π» Checkpoint 1400 β Early, Noisy, Unstable
#### [Test 1/5] Agda
**Prompt:** `module Main where`
```agda
BLAS : Bad memory unallocation! : 50 0x72ec90a000
module Main where
open import Data.PropositionalEquality using (PropositionalEquality;
open import Data.Nat
data import Data.PropositionalEquality using (Propos;
open-Equality -PropositionalEquality) using (Prop-} (Prop-Prop-ElAdvertisements)
```
β Severe corruption, mixed tokens, runtime noise.
---
#### [Test 2/5] C
**Prompt:** `int main() {`
```c
int main() {
prostitution of '/*' (prostitution of '*'
prost = $0)
```
β No syntactic coherence, random token associations.
---
#### [Test 3/5] Assembly
**Prompt:** `mov eax,`
```asm
mov eax,
the International Press S.
```
β No instruction continuation.
---
#### [Test 4/5] Generic
**Prompt:** `function test() {`
```javascript
function test() {
all test(1) {
all a,b : a
```
β Structural confusion, repeated patterns.
---
#### [Test 5/5] Python
**Prompt:** `def hello():`
```python
def hello():
open program
open import HUnit.H.P.B.P.P-E
```
β Python not learned, heavy cross-language contamination.
---
### πΊ Checkpoint 2000 β Structured, Language-Aware (Best Initial Yuuki)
#### [Test 1/5] Agda
**Prompt:** `module Main where`
```agda
module Main where
open import Function
--
open import Data.Nat
open import Function
open import Data.Nat
open import Data.Unit
open import Data.Nat
open import Data.Nat.Dec
open import Data.Properties.Nat
-- Dec
open import Data.Nat
open import Data.Properties
open import Data.Base
open import Data.Nat.Properties
open import Data.Unary
open import data
```
β
Shows strong familiarity with real Agda modules and imports.
---
#### [Test 2/5] C
**Prompt:** `int main() {`
```c
int main() {
no-print "no"
no-print "no"
print "no-print "
print "no"
print "no"
print "no"
fault-print "no"
}
run run
```
β οΈ Syntax is unstable, but structure and intent are present.
---
#### [Test 3/5] Assembly
**Prompt:** `mov eax,`
```asm
mov eax, "v2.2"
ov eax, "v1"
ov eax, "v2.2"
ov eax, "v2._v1"
ov eax, "v3"
```
π± Demonstrates token-level familiarity with assembly-like patterns.
---
#### [Test 4/5] Generic
**Prompt:** `function test() {`
```javascript
function test() {
for (i=0;i=0; i++, 1) {
(a=0; i++) {
.-1 . A
```
β οΈ Logic is broken, but syntactic scaffolding is emerging.
---
#### [Test 5/5] Python
**Prompt:** `def hello():`
```python
def hello():
"Hello!
tell-tell-it -o:Hello!
if not exist (
echo "Hello!
```
β Python not yet learned (expected due to alphabetical dataset order).
---
## π§ Interpretation
These outputs confirm that Yuuki:
- π **Learns real libraries** and language-specific tokens
- ποΈ **Shows early structure** before correctness
- π **Reflects dataset ordering effects** honestly
- π **Improves gradually**, not magically
This behavior is **expected and healthy** at ~5% total training.
---
## π§ Key Takeaway
Between **3.7% β 5.3%** training progress, Yuuki shows:
- β
Major qualitative gains
- β
Clear specialization trends
- β
Rapid early learning despite CPU-only constraints
This validates the project's core claim:
> **Progress is real, measurable, and reproducible β even at $0 cost.**
---
## π License
This project is licensed under the **Apache 2.0 License**.
```
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://huggingface.co/OpceanAI/Yuuki-the-best-model/blob/main/LICENSE
```
---
## π Links
- π€ [Hugging Face Model](https://huggingface.co/OpceanAI/Yuuki-the-best-model)
- π Research Paper (Coming Soon)
- [Training code](https://github.com/YuuKi-OS/yuuki-training)
---
<p align="center">
<i>Built with patience, a phone, and zero budget.</i><br>
<b>πΈ Yuuki Project</b>
</p> |