Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-tool-model/blob/main/pilot/METHOD.md # omega-tool-model First-party Omega tool-use model source, serving harnesses, and verification records Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-tool-model / pilot / METHOD.md` 31 lines ยท 4537 bytes Raw Blame History Source # Teaching pilot This directory holds an isolated teaching experiment for the existing rung-10 BF16-trained model. It does not change OMP, the shared model service, or the original checkpoint. ## What the lessons teach The prompt format is `Task: `, followed by a newline, `Answer:`, and another newline. Training answers end with a newline, `Done.`, another newline, and a zero byte. The existing tokenizer is unchanged. Tool lessons produce a JSON object containing `tool` and `path`. The three tools are `read_file`, `list_files`, and `omega_check`. Separate lessons report a returned file message or a file-not-found error. The executable tests accept only the expected tool name and exact fixture path. They do not execute general shell commands or give the model access to the user's files. Omega lessons produce complete programs in three families: adding two integers, returning the larger integer, and printing a short string. Every reference program was compiled and run before training. The checker runs generated programs only after their text passes a bounded grammar allowing these operations and a fixed write to standard output. A program outside that grammar is a failure for this pilot, even if a broader Omega implementation might accept it. ## How the training works `reset.om` retains all base model parameters, clears both Adam moment arrays, resets the step count, and starts a new 1000-update learning schedule. The peak learning rate is 0.0003, with the trainer's existing 100-update warmup and decay. Small-checkpoint tests verify the reset, malformed input rejection, and refusal to overwrite an existing destination. A separate full-size byte comparison verifies that all initial weights match the original and both moment arrays are zero. `prepare.py` is an external data preparation and measuring instrument. It creates 1440 training examples and two separate sets of 180 examples. It checks every reference program through the real Omega compiler. The held-out sets use different file identifiers, strings and arithmetic operand pairs. They share the same task templates; they do not establish generalization to arbitrary wording or new programming tasks. All individual examples fit within the existing context length. Some original training text is interleaved with the lessons to reduce loss of the model's previous abilities. `run.py` calls the existing, previously qualified native BF16 trainer. It saves copies after 250, 500 and 1000 updates. It selects by development transcript loss before inspecting final performance. This score includes prompt text, so it is not an answer-accuracy score. Final checking includes generation and actual compiler/runtime outcomes. All training and model arithmetic run in Omega; Python is only the external experiment controller and independent checker. ## Generation and verification `sample.om` uses the existing native f32 GPU forward kernels with one sequence and greedy token selection. It reads logits before the training loss operation changes them. It does not update model weights. Its output is compared with the existing CPU sampler on a base-model prompt and a selected-model prompt. The existing BF16 trainer binary is not changed by this sampler. `check_behavior.py` evaluates eight fixed baseline/selected pairs. `evaluate_all.py` checks the selected copy on all 180 frozen final examples. `tool_cycles.py` performs three complete read-and-report cycles through disposable files. The expanded checks were recorded before trained-model scores were observed and cannot change the selected model. `PREREG.md` and `EVALUATION-EXTENSION.md` retain those decisions. The final results are local experimental evidence. A successful narrow exercise does not establish general software development, error repair, safe autonomous operation, or compatibility with an installed harness. No model is promoted automatically. ## Batched evaluation The evaluation initially reloaded the checkpoint for each prompt. A persistent-weight version, `batch-sample.om`, produced exactly the same answers for all eight paired prompts in forward and reverse order (16 checks), and rejected four malformed input files. The unfinished per-prompt sweep was stopped; its completed records were retained. The full replacement sweep must reproduce every completed individual answer before its results are accepted. This changes evaluation overhead, not the selected model, prompts, arithmetic kernels or greedy decoding. See evaluation-method-change.json.