josephmayo commited on
Commit
0a6bb6c
·
verified ·
1 Parent(s): 7ca7233

Update model card with technical eval details

Browse files
Files changed (1) hide show
  1. README.md +51 -5
README.md CHANGED
@@ -4,13 +4,13 @@ library_name: transformers
4
  tags:
5
  - zaya
6
  - lora
7
- - coding
8
  - merged
9
  ---
10
 
11
- # ZAYA1-8B Coding Standalone
12
 
13
- Merged standalone model from `Zyphra/ZAYA1-8B` and `josephmayo/ZAYA1-8B-Coding-LoRA`.
14
 
15
  ## Evaluation Gate
16
 
@@ -18,11 +18,47 @@ The adapter was evaluated against the base model on 50 Python coding prompts wit
18
 
19
  - Base average: 2.36 / 10
20
  - LoRA average: 4.76 / 10
 
 
 
21
  - Improved prompts: 39 / 50
22
- - Full-scale improvement: 24.00%
23
  - Merge threshold: 20.00%
24
  - Merge decision: true
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  Evaluation artifacts are included under `eval/`:
27
 
28
  - `eval/eval_summary.json`
@@ -30,4 +66,14 @@ Evaluation artifacts are included under `eval/`:
30
  - `eval/base_outputs.jsonl`
31
  - `eval/lora_outputs.jsonl`
32
 
33
- Note: ZAYA uses a custom `model_type = zaya`; loading the original architecture requires Zyphra's Transformers implementation. A patched `zaya_patched_config.json` is also included for the requested compatibility artifact.
 
 
 
 
 
 
 
 
 
 
 
4
  tags:
5
  - zaya
6
  - lora
7
+ - coder
8
  - merged
9
  ---
10
 
11
+ # ZAYA1-8B Coder
12
 
13
+ Merged Coder model from `Zyphra/ZAYA1-8B` and `josephmayo/ZAYA1-8B-Coder-LoRA`. This repo contains the adapter merged into the base weights as normal safetensors shards.
14
 
15
  ## Evaluation Gate
16
 
 
18
 
19
  - Base average: 2.36 / 10
20
  - LoRA average: 4.76 / 10
21
+ - Absolute score delta: +2.40 / 10
22
+ - Full-scale lift: 24.00%
23
+ - Relative lift over base average: 101.69%
24
  - Improved prompts: 39 / 50
 
25
  - Merge threshold: 20.00%
26
  - Merge decision: true
27
 
28
+ Full-scale lift is the required notebook metric:
29
+
30
+ ```text
31
+ ((lora_avg - base_avg) / 10) * 100
32
+ ((4.76 - 2.36) / 10) * 100 = 24.00%
33
+ ```
34
+
35
+ ## Scoring Heuristic
36
+
37
+ Each response was scored out of 10:
38
+
39
+ - `def` present: 2 points
40
+ - `class` present: 1 point
41
+ - `return` present: 1 point
42
+ - `import` or `from` present: 1 point
43
+ - fenced code block present: 1 point
44
+ - output length greater than 100 characters: 1 point
45
+ - Python AST parse validity: 3 points
46
+
47
+ ## Architecture Notes
48
+
49
+ ZAYA uses a custom `model_type = zaya`; it is not weight-compatible with `LlamaForCausalLM` despite similar naming in some configs. During evaluation and merge, the real ZAYA architecture was loaded using Zyphra's Transformers implementation:
50
+
51
+ ```bash
52
+ pip install git+https://github.com/Zyphra/transformers.git@zaya1
53
+ ```
54
+
55
+ The LoRA adapter contains 160 tensors targeting:
56
+
57
+ - `self_attn.o_proj`
58
+ - `zaya_block.router.down_proj`
59
+
60
+ The merge was performed after the evaluation gate passed, then the merged model was saved to safetensors shards with tokenizer and generation config.
61
+
62
  Evaluation artifacts are included under `eval/`:
63
 
64
  - `eval/eval_summary.json`
 
66
  - `eval/base_outputs.jsonl`
67
  - `eval/lora_outputs.jsonl`
68
 
69
+ ## Included Files
70
+
71
+ - `model-00001-of-00005.safetensors` through `model-00005-of-00005.safetensors`
72
+ - `model.safetensors.index.json`
73
+ - `config.json`
74
+ - `generation_config.json`
75
+ - tokenizer files
76
+ - `zaya_patched_config.json`
77
+ - evaluation outputs under `eval/`
78
+
79
+ The GGUF quantized release is available at `josephmayo/ZAYA1-8B-Coder-GGUF`.