alexchapin commited on
Commit
512d564
·
verified ·
1 Parent(s): 987e684

Update model card with training details and anti-hallucination fixes

Browse files
Files changed (1) hide show
  1. README.md +41 -8
README.md CHANGED
@@ -12,18 +12,51 @@ tags:
12
  - bedrock-edition
13
  - minecraft-addon
14
  - mod-conversion
15
- - self-reflection
16
- - grpo8
17
  ---
18
 
19
  # alexchapin/portkit-coder-8b-grpo8
20
 
21
- This model was fine-tuned from [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B) using [Tinker](https://thinkingmachines.ai/tinker) and [tinker-cookbook](https://github.com/thinking-machines-lab/tinker-cookbook).
22
 
23
- ## Model details
24
 
25
- - **Base model:** [Qwen/Qwen3-8B](https://huggingface.co/Qwen/Qwen3-8B)
26
- - **Format:** Merged model
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
  ## Usage
29
 
@@ -33,8 +66,8 @@ from transformers import AutoModelForCausalLM
33
  model = AutoModelForCausalLM.from_pretrained("alexchapin/portkit-coder-8b-grpo8")
34
  ```
35
 
36
- ## Framework versions
37
 
38
  - tinker-cookbook: 0.4.1
39
  - transformers: 5.5.3
40
- - torch: 2.5.1+cu121
 
12
  - bedrock-edition
13
  - minecraft-addon
14
  - mod-conversion
15
+ - anti-hallucination
 
16
  ---
17
 
18
  # alexchapin/portkit-coder-8b-grpo8
19
 
20
+ Anti-hallucination focused GRPO fine-tuned model for Minecraft Java (Forge) to Bedrock Add-on conversion.
21
 
22
+ ## Model Details
23
 
24
+ - **Base model:** Qwen/Qwen3-8B
25
+ - **Training method:** GRPO with anti-hallucination focus
26
+ - **Checkpoint:** GRPO8 final (50 steps, group_size=16-20)
27
+ - **Learning rate:** 5e-7
28
+
29
+ ## Reward Components
30
+
31
+ | Component | Weight | Description |
32
+ |-----------|--------|-------------|
33
+ | manifest | 0.10 | UUID v4, version array, module type validation |
34
+ | real_api | 0.25 | Event subscription + API chain depth |
35
+ | anti_hallucination | 0.25 | Hallucination penalties (shifted to 0.5-1.0) |
36
+ | concise | 0.15 | Output length optimization |
37
+ | code_bleu | 0.25 | Token overlap in code blocks |
38
+
39
+ ## Anti-Hallucination Fixes
40
+
41
+ - **Issue #1582**: Hardened hallucination detection with comprehensive fake API patterns
42
+ - **Issue #1583**: Real API fixes (event subscription, API chain depth)
43
+ - **Issue #1584**: GRPO Stabilization (group_size 16, lr 5e-7, clipped surrogate)
44
+ - **Issue #1586**: Manifest fixes (UUID v4, version array, module type)
45
+
46
+ ## Hard Hallucination Patterns (NEVER valid in Bedrock)
47
+
48
+ - ServerPlayerAPI, ServerPlayer, PlayerAPI
49
+ - WorldEvent, BlockEntityAPI, EntityPlayerAPI, WorldAPI
50
+ - require('@minecraft/server')
51
+ - registerMod(), getServer(), Server.getInstance()
52
+ - event.level, server.getWorld
53
+
54
+ ## Real Bedrock APIs (ALWAYS valid)
55
+
56
+ - world.afterEvents, world.beforeEvents
57
+ - system.runInterval, system.runTimeout
58
+ - player.sendMessage, player.getComponent
59
+ - { world, system, player } imports from @minecraft/server
60
 
61
  ## Usage
62
 
 
66
  model = AutoModelForCausalLM.from_pretrained("alexchapin/portkit-coder-8b-grpo8")
67
  ```
68
 
69
+ ## Framework Versions
70
 
71
  - tinker-cookbook: 0.4.1
72
  - transformers: 5.5.3
73
+ - torch: 2.11.0+rocm7.2