Przejdź do treści
Biblioteka skilli
AI i agenci · Budowanie i kod

tvashtr

/tvashtr

Podnosi jakość lokalnego modelu kodującego Ollama bez treningu: próbkowanie równoległe, naprawa po testach i testy porównawcze.

Repozytorium
tvashtr ↗
Licencja
Apache-2.0
Ostatnia zmiana repozytorium
05.11.2026

Ocena i bezpieczeństwo

98/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena13 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
2
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

Co robi i kiedy

Podnosi jakość lokalnego modelu kodującego Ollama bez treningu: próbkowanie równoległe, naprawa po testach i testy porównawcze.

Wyzwalacze z opisu

update the weights of
Oryginalny opis (EN)

Make a local Ollama coding model measurably better without training it - test-time enhancements (S*-style parallel sampling + execution-feedback repair + distinguishing-input selection, CodeT, self-planning, adaptive escalation) and training-free weight updates (ExPO extrapolation, task-vector merging) - then benchmark, autotune and serve the result behind an Ollama-compatible endpoint. Use when the user wants to improve, enhance, boost or "update the weights of" a local/open model for coding without fine-tuning, wants post-training enhancements, model merging or ExPO, wants to benchmark local

Jak działa

  1. Setup (once)
  2. Commands
  3. How to work
  4. Practical notes
  5. What has been measured (held-out HumanEval half, 82 problems)
  6. Pitfalls already hit (check these before trusting a number)
Sekcje z nagłówków SKILL.md, w oryginale · 94 linii, 829 słów
Podgląd SKILL.md
---
name: tvashtr
description: Make a local Ollama coding model measurably better without training it - test-time enhancements (S*-style parallel sampling + execution-feedback repair + distinguishing-input selection, CodeT, self-planning, adaptive escalation) and training-free weight updates (ExPO extrapolation, task-vector merging) - then benchmark, autotune and serve the result behind an Ollama-compatible endpoint. Use when the user wants to improve, enhance, boost or "update the weights of" a local/open model for coding without fine-tuning, wants post-training enhancements, model merging or ExPO, wants to benchmark local models on HumanEval, or wants an enhanced model usable from Continue, Aider, Open WebUI or any Ollama client.
---

# Tvashtr

Tvashtr improves an existing open model in two complementary ways, and proves each gain on held-out
problems before using it. Nothing is trained and no private code is ever used as data.

* **Post-training enhancements (PTEs)** - extra inference-time computation around the same weights.
  Davidson et al. 2023 (arXiv 2312.07413) find typical PTEs are worth 5-20x+ training compute.
* **Training-free weight updates** - ExPO extrapolation and task arithmetic over checkpoints that
  already exist. Produces a new model file; costs one pass over the weights on CPU.

Source: https://github.com/dmdhrumilmistry/tvashtr (Apache-2.0).

## Setup (once)

The Python package ships with this plugin: its root is two directories above this SKILL.md
(it contains `pyproject.toml` and `tvashtr/`). If you are working in a clone of the repo, use that
instead. Create a venv there if `.venv` is missing:

```
uv venv .venv && uv pip install --python .venv -e .      # or: python -m venv .venv; pip install -e .
```

Requirements: Python 3.10+, a running Ollama (`ollama serve`), and models pulled.

## Commands

Run from that root with `.venv\Scripts\python.exe -m tvashtr ...` (Windows) or
`.venv/bin/python -m tvashtr ...`.

| Goal | Command |
|---|---|
| Score one strategy | `bench --model qwen3-coder:30b --strategy adaptive --part test` |
| Pick the best strategy for a model | `autotune --model <tag>` (tunes on dev split, confirms on test, writes `profiles/<model>.json`) |
| Serve enhanced models | `serve --port 11435`, then use model `tvashtr/<tag>` at `http://127.0.0.1:11435` |
| ExPO weight update (GGUF, Ollama tags) | `expo-gguf --base <tag>-base-fp16 --instruct <tag>-instruct-fp16 --alpha 0.3 --out D:\models\x.gguf --name <new> --quantize q4_K_M` |
| ExPO on safetensors | `expo --base DIR --instruct DIR --alpha 0.3 --out DIR` |

Strategies: `direct`, `plan`, `self_debug`, `codet`, `s_star`, `adaptive`. Params go in
`--params '{"n": 6, "rounds": 3}'`.

## How to work

1. **Measure first.** Run `bench --strategy direct --part test` as the baseline. Never claim a gain
   without a held-out comparison; report pass@1, avg calls and avg tokens together.
2. **Tune on dev, report on test.** `autotune` keeps selection and reporting on disjoint halves of
   HumanEval. Do not pick a strategy or alpha by looking at test scores.
3. **Weight updates are experiments.** Sweep a few alphas (0.1-0.5), benchmark each with
   `--strategy direct`, and compare against the unmodified model imported the same way (same
   quantization). Keep a variant only if it beats that control on dev and holds up on test.
   Extrapolating base->instruct can hurt; alpha 0 (no change) is a valid winner.
4. **Then stack.** Run `autotune` on the winning weights; weight and inference gains compound.
5. **Serve.** Start `serve`; requests to `tvashtr/<tag>` use the profile. Tool calls, FIM
   autocomplete, explanations and non-Python requests pass straight through.

## Practical notes

* fp16 checkpoints are large (7B is about 15 GB each). If the system drive is short on space, run a
  second Ollama instance with a store on a bigger drive, e.g. `OLLAMA_MODELS=D:\models\ollama`
  `OLLAMA_HOST=127.0.0.1:11436 ollama serve`, and point `OLLAMA_HOST` (CLI) and
  `TVASHTR_UPSTREAM` (bench/serve) at it.
* Recent Ollama builds reject safetensors imports for Qwen2 ("unsupported MLX architecture"), which
  is why `expo-gguf` works on the fp16 GGUF builds from the Ollama library instead.
* Generated code runs in a temp dir with a timeout (`sandbox.py`). That is process isolation, not a
  security boundary; set `TVASHTR_SANDBOX=docker` (Docker running) for untrusted workloads.
* Strong models leave little headroom on HumanEval (qwen3-coder:30b is ~93% direct); gains show up
  most on smaller models and harder problems. Say so rather than overselling small deltas.

## What has been measured (held-out HumanEval half, 82 problems)

Use these as priors, then measure on the user's model:

* **Small models:** Qwen2.5-Coder-1.5B with `s_star` goes from 70.7% to 80.5% (+8 problems) at about
  8.5 calls per problem. `codet` gets most of that gain at about a third of the tokens. `plan` hurts
  small models (-9 on dev). `self_debug` alone barely helps.
* **Strong models:** qwen3-coder:30b with `adaptive` gains +1 problem, which is noise. Recommend
  `direct`.
* **ExPO on Qwen2.5-Coder (0.5B, 1.5B, 7B):** never beat the original; it collapses 0.5B at
  alpha >= 0.3. Expect ExPO to help only for checkpoint pairs separated by a small alignment step.
* **Noise floor:** about ±3 problems (about 3.5 pts) on an 82-problem half, even at temperature 0.
  Never report a smaller delta as a gain.
* **Phones:** recommend stock `qwen2.5-coder:1.5b` q4_K_M. Test-time search is too slow on-device.

## Pitfalls already hit (check these before trusting a number)

* **An implausibly large gain is a harness bug until proven otherwise.** Some models emit CRLF. The
  extractor normalises it; run `rescore` on old results after any harness change.
* **HTTP 500s from Ollama** (queue full with `OLLAMA_NUM_PARALLEL=1`) used to be scored as failures.
  The client now retries, and a resumed `bench` re-runs errored rows. Check `trace` for `error:`.
* **Ollama may refuse `--quantize` on GGUF imports.** `deploy-check` then stops rather than measuring
  fp16 under a quantized name.
* **Use `compare A.jsonl B.jsonl`** to report improved / regressed problems and failure types, not
  just the pass rate.

Wersje

W bazie nie ma innych skilli o nazwie tvashtr.

Migawka bazy z 13.11.2026 · wersja paczki 5f57e6327814 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100ollama-inference-test
    Testuje i mierzy wydajność lokalnej inferencji Ollama: sprawdza status i dostępność modeli, uruchamia testy generowania i klasyfikacji oraz mierzy czas odpowiedzi.
  • 100add-ollama-provider
    Kieruje grupę agentów NanoClaw do lokalnego modelu Ollama zamiast API Anthropic, przez nadpisanie zmiennych środowiskowych i ustawienie modelu, co pozwala obniżyć koszty i testować modele open-weight.
  • 100add-ollama-provider
    Kieruje grupę agentów ClawBridge na lokalny model Ollama zamiast API Anthropic, przez zmienne środowiskowe i ustawienie modelu.
  • 90model-sovereignty
    Doradza, czy budować, hostować lub dostrajać własne modele AI: lokalne modele, Ollama, vLLM, LoRA i RAG.
  • 100local-ai-ollama
    Pomaga zintegrować aplikację z lokalnymi modelami AI przez Ollama: kontrola połączenia, lista i wybór modeli, tryb tylko lokalny, zgoda na chmurę zapasową i obsługa błędów.
  • 100diff-leppard
    Zleca przegląd kodu własnemu, samodzielnie hostowanemu modelowi LLM, np. przez vLLM, Ollama albo LM Studio, także dla pull requestów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.