alexwengg commited on
Commit
dd6f7d9
·
verified ·
1 Parent(s): 2def9fa

Publish NanoJev Core ML conversion source without trained weights

Browse files
README.md CHANGED
@@ -8,10 +8,12 @@ tags:
8
 
9
  # NanoJev Core ML conversion source — no weights
10
 
11
- This repository contains a conversion recipe for the [current NanoJev unified-games checkpoint](https://huggingface.co/C-Tianyu/NanoJev), pinned to revision `047b927b30882a1138fc504821b82ac145a4b81a`. **It does not contain a converted model or trained weights.** The upstream model card labels its source code MIT but does not state a redistribution license for the trained weights. Converted Core ML weights will be published only if that permission is clarified and parity validation passes.
12
 
13
- The source is designed to preserve NanoJev's Qwen3 candidate encoder, trained scalar head, and Choice-specific attention over the full candidate set. It also implements the Boolean and Score output paths. `source/assets.lock.json` records the selected checkpoint SHA256 `f68c47d66998231b86b7e91b4ed5e82ae23acf104c8b7cd6d165c3ac7b7ffe1b`, which contains 596,250,498 trained parameters including heads. The exporter targets separate candidate-encoder and decision-head Core ML packages so one backbone can serve all three question types; parity and conversion status are reported in `source/STATUS.md`.
 
 
14
 
15
  The current checkpoint is newer than the one likely used for the tracker entry, whose exact revision has not been verified. A local Core ML package from this recipe should not be described as reproducing the tracker's 26.19 score without that identity check and the official suite run.
16
 
17
- See `source/README.md` for commands and `source/STATUS.md` for validation progress. This repository's conversion scripts are original Fluid Inference code. NanoJev's source code and checkpoint remain at the upstream repository; the base Qwen model keeps its own license.
 
8
 
9
  # NanoJev Core ML conversion source — no weights
10
 
11
+ This repository contains a validated conversion recipe for the [current NanoJev unified-games checkpoint](https://huggingface.co/C-Tianyu/NanoJev), pinned to revision `047b927b30882a1138fc504821b82ac145a4b81a`. **It does not contain a converted model or trained weights.** The upstream model card labels its source code MIT but does not state a redistribution license for the trained weights. Converted Core ML weights will be published only if that permission is clarified.
12
 
13
+ The source preserves NanoJev's Qwen3 candidate encoder, trained scalar head, and Choice-specific attention over the full candidate set. It also implements the Boolean and Score output paths. `source/assets.lock.json` records the selected checkpoint SHA256 `f68c47d66998231b86b7e91b4ed5e82ae23acf104c8b7cd6d165c3ac7b7ffe1b`, which contains 596,250,498 trained parameters including heads. The exporter creates separate candidate-encoder and decision-head Core ML packages so one backbone serves all three question types.
14
+
15
+ The local FP16 L128/K4 export passed native parity on Choice, Boolean, and Score (maximum logit error `1.67e-6`). Core ML selected the same answer as native PyTorch on all three requests; maximum probability errors were `0.003851`, `0.000847`, and `0.005882`, respectively. The encoder package is about 1.1 GiB and the shared head about 420 KiB. The packages remain local because trained-weight redistribution is unresolved. These are parity checks, not the Decision Index or 2048 benchmark.
16
 
17
  The current checkpoint is newer than the one likely used for the tracker entry, whose exact revision has not been verified. A local Core ML package from this recipe should not be described as reproducing the tracker's 26.19 score without that identity check and the official suite run.
18
 
19
+ See `source/README.md` for commands and `source/RESULTS.md` for the local results. This repository's conversion scripts are original Fluid Inference code. NanoJev's source code and checkpoint remain at the upstream repository; the base Qwen model keeps its own license.
source/RESULTS.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # NanoJev Core ML local validation
2
+
3
+ | Check | Result |
4
+ | --- | --- |
5
+ | Trained checkpoint | `C-Tianyu/NanoJev@047b927b30882a1138fc504821b82ac145a4b81a` |
6
+ | Checkpoint SHA256 | `f68c47d66998231b86b7e91b4ed5e82ae23acf104c8b7cd6d165c3ac7b7ffe1b` |
7
+ | Trained parameters | 596,250,498 across 322 tensors, including set and scalar heads |
8
+ | Export | FP16, 128-token, four-candidate bucket, iOS 17/macOS 14 minimum |
9
+ | Native vs export-wrapper max logit error | `0.00000167` over Choice, Boolean, Score |
10
+ | Core ML answer agreement | 3/3 over Choice, Boolean, Score |
11
+ | Core ML max probability error | Choice `0.003851`; Boolean `0.000847`; Score `0.005882` |
12
+ | Local packages | Encoder about 1.1 GiB; shared decision head about 420 KiB |
13
+ | Export time | 22.7 seconds after loading checkpoint |
14
+
15
+ The local packages have **not** been uploaded: the upstream model card licenses source code but leaves trained-weight redistribution unclear. The current checkpoint is also newer than the tracker-era one; the tracker’s 26.19 score is not a measured Core ML result.
source/STATUS.md CHANGED
@@ -3,5 +3,6 @@
3
  - Pinned current checkpoint and audited native source; full checkpoint SHA256 matches upstream and contains 596,250,498 trained parameters across 322 tensors. Historical tracker revision unresolved.
4
  - Pinned full checkpoint downloaded. Native Qwen3 encoder plus decision-head exporter matched the trained model on Choice, Boolean, and Score requests: same argmax for all three, maximum logit error `1.67e-6`.
5
  - FP16 Core ML L128/K4 encoder and full decision-head packages exported in 22.7 seconds. Encoder package is about 1.1 GiB; head package is about 420 KiB.
6
- - Core ML runtime parity for Choice, Boolean, and Score remains pending.
 
7
  - Trained-weight redistribution license unresolved. Public HF model artifact is not yet authorized by the source metadata.
 
3
  - Pinned current checkpoint and audited native source; full checkpoint SHA256 matches upstream and contains 596,250,498 trained parameters across 322 tensors. Historical tracker revision unresolved.
4
  - Pinned full checkpoint downloaded. Native Qwen3 encoder plus decision-head exporter matched the trained model on Choice, Boolean, and Score requests: same argmax for all three, maximum logit error `1.67e-6`.
5
  - FP16 Core ML L128/K4 encoder and full decision-head packages exported in 22.7 seconds. Encoder package is about 1.1 GiB; head package is about 420 KiB.
6
+ - Core ML runtime parity passed for Choice, Boolean, and Score: 3/3 chosen answers matched trained PyTorch. Maximum probability errors were `0.003851`, `0.000847`, and `0.005882`, respectively.
7
+ - No full Decision Index or 2048 evaluation has been run for this Core ML package.
8
  - Trained-weight redistribution license unresolved. Public HF model artifact is not yet authorized by the source metadata.
source/publish-hf-source.py CHANGED
@@ -12,6 +12,7 @@ REPO = "FluidInference/nanojev-coreml"
12
  FILES = (
13
  ".gitignore",
14
  "README.md",
 
15
  "STATUS.md",
16
  "assets.lock.json",
17
  "assets.py",
 
12
  FILES = (
13
  ".gitignore",
14
  "README.md",
15
+ "RESULTS.md",
16
  "STATUS.md",
17
  "assets.lock.json",
18
  "assets.py",