Skip to content

basal-export-gguf: GGUF z tokenizerem jak w plikach -GGUF (konwersja i naprawa) - #8

Merged
rkinas merged 11 commits into
rkinas:mainfrom
pdurlej:ollama-systemone
Oct 19, 2026
Merged

rkinas merged 11 commits into
rkinas:mainfrom
pdurlej:ollama-systemone

Conversation

@pdurlej

@pdurlej pdurlej commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Narzędzie, które robi trzy poprawki tokenizera opisane w docs/PORTS.md („Tokenizer fix”), zaktualizowane pod basal 2.0.0:

  • konwersja z HF (basal-export-gguf Remek/basal-2.0-4.5B out.gguf --outtype q8_0 --llama-cpp ~/llama.cpp) daje pola tokenizera bit w bit takie jak w plikach -GGUF;
  • --gguf naprawia istniejący GGUF bez ponownej konwersji: wynik stockowego konwertera, llama-quantize albo starsze pliki (np. GGUF-y basal-1.0 Pawła, do których linkuje docs/GGUF.md). Z --gguf z repo pobierany jest tylko tokenizer.json.

Bez części o natywnej Ollamie, zgodnie z Twoją uwagą.

Co jest w PR-ze

  • basal/gguf_export.py (CLI basal-export-gguf, extra gguf-export = pakiet gguf). Ustawia: score tokenów z rang merge'y BPE w konwencji plików -GGUF (−ranga od 0; dodane tokeny −1000; reszta 0), add_space_prefix = false, dodane tokeny z tokenizer.json jako CONTROL / USER_DEFINED.
  • tests/test_gguf_export.py: 16 testów na małym GGUF-ie (konwerter zastąpiony skryptem). Każda z poprawek cofnięta daje czerwony test.
  • docs/GGUF.md „Convert yourself” z narzędziem i przykładem --gguf; po jednym zdaniu w docs/INSTALL.md i docs/PORTS.md.
  • uv.lock: tylko gguf 0.19.0 dopisane do Twojego locka (uv lock --check --no-config przechodzi).
  • Scalone z main 2.0.0 zwykłym merge'em.

pytest -q tests: 516 passed, 15 skipped (MLX/GPU).

Sprawdzenie na basal-2.0 (Apple M1 Max, llama.cpp b11146)

sprawdzenie wynik
--gguf na Twoich 6 plikach 2.0 (mini, 4.5B, max × Q8_0, Q5_K_M) 6/6 bajt w bajt bez zmian
stockowa konwersja + naprawa vs Twoje pliki, pola tokenizer.* 13/13 identyczne dla wszystkich trzech modeli (sam stock: 10–11/13)
basal-export-gguf Remek/basal-2.0-mini … --outtype q8_0 vs Twój basal-2.0-mini-Q8_0.gguf 13/13 pól tokenizera i 515/515 tensorów identycznych; różni się tylko general.* z karty modelu

🤖 Generated with Claude Code

@sourcery-ai

sourcery-ai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Introduces basal-export-gguf, which post-processes llama.cpp GGUF output so basal prompts tokenize like Hugging Face, optionally embeds calibrated basal decision metadata for a proposed Ollama /v1/systemone encoder, and documents and tests the workflow.

Sequence diagram for native basal decisions in Ollama

sequenceDiagram
    actor Client
    participant Ollama
    participant BasalEncoder
    participant Model
    Client->>Ollama: POST /v1/systemone
    Ollama->>BasalEncoder: Encode state and questions
    BasalEncoder->>BasalEncoder: Render basal prompt
    BasalEncoder->>Model: Score first option order
    BasalEncoder->>Model: Score reversed option order
    BasalEncoder->>BasalEncoder: Average orders and apply calibrated temperature
    BasalEncoder-->>Ollama: Typed decision probabilities
    Ollama-->>Client: Decision response
Loading

Flow diagram for basal GGUF export and tokenizer correction

flowchart LR
    Model[Hugging Face basal model] --> Export[basal-export-gguf]
    Export --> Converter[llama.cpp convert_hf_to_gguf.py]
    Converter --> Raw[Raw GGUF]
    Raw --> Fix[fix_gguf]
    Tokenizer[tokenizer.json BPE merges and added_tokens] --> Fix
    Calibration[CALIBRATION.json] --> Decision{--ollama-decision}
    Decision --> Fix
    Fix --> GGUF[Corrected GGUF]
    GGUF --> Tokenization[HF-compatible tokenization]
    GGUF --> OllamaMetadata[Optional basal decision metadata]
Loading

File-Level Changes

Change Details Files
Adds a CLI exporter that converts Hugging Face checkpoints to GGUF and repairs tokenizer metadata to preserve basal’s BPE behavior in llama.cpp-compatible front ends.
  • Invokes llama.cpp’s converter and supports local or Hugging Face model sources, output quantization type, revision selection, and actionable dependency/converter errors.
  • Derives GGUF token scores from BPE merge ranks, disables the SentencePiece space prefix, and maps tokenizer.json added-token flags to GGUF token types.
  • Optionally writes Ollama basal decision metadata and calibration temperatures, while leaving default exports suitable for general generation use.
basal/gguf_export.py
pyproject.toml
uv.lock
Adds focused tests for tokenizer score conversion, decision metadata, GGUF rewriting, and CLI validation.
  • Verifies merge-list and string-form parsing, ordering, unranked-token fallback, token types, prefix metadata, and calibration values.
  • Checks plain versus decision-enabled output and failure before model download when llama.cpp is unavailable.
tests/test_gguf_export.py
Documents the export workflow, tokenizer fidelity, and proposed native Ollama decision integration.
  • Describes installation, conversion commands, tokenizer limitations, and the distinction between corrected generic GGUF and decision-only Ollama GGUF.
  • Documents the required Ollama basal encoding, request limitations, prompt rendering behavior, measured accuracy/latency, and tokenizer validation results.
  • Links the new Ollama capability from the README.
docs/GGUF.md
README.md

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 security issue, and 1 other issue

Security issues:

  • Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'. (link)
Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="basal/gguf_export.py" line_range="117" />
<code_context>
+
+    model_dir = Path(a.model) if Path(a.model).exists() else Path(snapshot_download(a.model, revision=a.revision))
+    out = Path(a.outfile)
+    with tempfile.TemporaryDirectory(dir=out.parent) as tmp:
+        raw = Path(tmp) / "converted.gguf"
+        done = subprocess.run([sys.executable, str(converter), str(model_dir), "--outtype", a.outtype, "--outfile", str(raw)])
</code_context>
<issue_to_address>
**nitpick (bug_risk):** `TemporaryDirectory(dir=out.parent)` raises `FileNotFoundError` when the requested output is in a new directory, such as `exports/model.gguf`, because the command never creates `out.parent`. The export therefore fails even though the output path is otherwise valid.

**Triggers:** When the output path contains a directory that does not already exist.

**Suggested fix:** Create `out.parent` with `mkdir(parents=True, exist_ok=True)` before creating the temporary directory, or use a temporary directory elsewhere and create the destination parent before writing.

```suggestion
    out.parent.mkdir(parents=True, exist_ok=True)
    with tempfile.TemporaryDirectory(dir=out.parent) as tmp:
```
</issue_to_address>

### Comment 2
<location path="basal/gguf_export.py" line_range="119" />
<code_context>
        done = subprocess.run([sys.executable, str(converter), str(model_dir), "--outtype", a.outtype, "--outfile", str(raw)])
</code_context>
<issue_to_address>
**security (python.lang.security.audit.dangerous-subprocess-use-audit):** Detected subprocess function 'run' without a static string. If this data can be controlled by a malicious actor, it may be an instance of command injection. Audit the use of this call to ensure it is not controllable by an external resource. You may consider using 'shlex.escape()'.

*Source: opengrep*
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread basal/gguf_export.py Resolved
Comment thread basal/gguf_export.py Resolved
@pdurlej

pdurlej commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor Author

Aktualizacja 9.10: stronę pdurlej/basal-1.0 wycofałem: pliki natywne nie działają na żadnej wydanej Ollamie (0.40.2 też odpowiada unsupported decision encoding "basal"), a 1.5 jest lepszy. Aktualna strona to https://ollama.com/pdurlej/basal: Twoje pliki -GGUF 1.5 bez zmian, do basal-serve --mode ollama na zwykłej Ollamie (szczegóły w opisie PR-a).

Pierwotny komentarz z 3.10 (basal-1.0, wersja natywna)

W duchu Twojego komentarza w #5 wrzuciłem przetestowane i poprawione modele na Ollamę: pdurlej/basal-1.0 (wycofane)

tag model plik
1.5b (= latest) basal-1.0-1.5B Q8_0, 1.7 GB
1.5b-f16 basal-1.0-1.5B F16, 3.2 GB
4.5b basal-1.0-4.5B Q8_0, 5.1 GB
4.5b-f16 basal-1.0-4.5B F16, 9.5 GB

To są pliki z basal-export-gguf --ollama-decision z tego PR-a, z Twoim LICENSE i NOTICE. W opisie strony jesteś wskazany jako autor, są linki do repo, HF i DOI. Przed publikacją każdy tag przeszedł nasz test (50 zadań × 4 pytania). Wyniki zgadzają się z basal-serve: średnia różnica rozkładów ok. 0.01, a accuracy 4.5B jest identyczna.

Ważne: wersja natywna wymaga Ollamy z enkoderem basal (ollama/ollama#18760). Do tego czasu wydana Ollama odpowiada na nie unsupported decision encoding "basal". Świadomie nie wrzuciłem wariantu działającego na obecnej Ollamie z jej ogólnym promptem, bo jakość jest tam wyraźnie niższa (klasa danych 0.46 zamiast 0.70) i nie chciałem, żeby ktoś oceniał basala po gorszej wersji.

Jeśli wolisz wydawać basala na Ollamie sam, pod swoim kontem, daj znać. Usunę wtedy swoją stronę i przekażę wszystko, co trzeba. Możesz też po prostu sam przetestować: wystarczy zbudować Ollamę z gałęzi pdurlej/ollama@decision-basal-encoding.

Jeszcze raz dzięki, kawał świetnej roboty. basal naprawdę dobrze działa na moich mieszanych polsko-angielskich zadaniach i będę go używał na co dzień.

@pdurlej

pdurlej commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Dzięki za review (bot): oba punkty przejrzane.

  1. Brak katalogu docelowego. Słuszne. basal-export-gguf … exports/model.gguf wywracał się, gdy exports/ nie istniał. Poprawione w 2b9e9b5 (out.parent.mkdir(parents=True, exist_ok=True)), z testem test_cli_creates_missing_output_directory. Bez poprawki test kończy się FileNotFoundError. pytest -q tests: 30 passed, 2 skipped.
  2. subprocess.run „bez stałego stringa”. To fałszywy alarm, więc bez zmian. Wywołanie przekazuje listę argumentów bez powłoki (shell=False, domyślnie), więc nie ma czego interpretować ani escapować; shlex.quote dotyczy tylko komend przekazywanych do shella. Argumenty to ścieżki i --outtype podane przez osobę, która sama uruchamia narzędzie lokalnie, więc nie wychodzimy poza jej uprawnienia.

@pawelkiszczak

Copy link
Copy Markdown
Contributor

@pdurlej swietna robota, wielkie dzięki za ogarnięcie!

@rkinas do zrobienia review i merge, całość wygląda rozsądnie 🫡

@pdurlej

pdurlej commented Oct 5, 2026

Copy link
Copy Markdown
Contributor Author

Jak coś jeszcze będzie szło poprawić dajcie znać :)

pdurlej and others added 7 commits October 5, 2026 22:52
README.md and docs/GGUF.md are taken from basal 1.5.0; the basal-export-gguf
documentation is re-added on top of them in a later commit. pyproject.toml keeps
the gguf-export extra and the basal-export-gguf script; uv.lock adds only gguf
0.19.0 to upstream's lockfile (uv lock --check passes).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ting file

Token scores now follow the convention of the basal-1.5 -GGUF files: minus the
0-based rank of the first BPE merge producing the token, the added tokens of
tokenizer.json keep their score, every other token scores 0. Tokenization is
unchanged; the tokenizer fields now equal the -GGUF files' on all three 1.5
models, and fixing a -GGUF file leaves it byte-identical.

--gguf FILE fixes an existing GGUF (a stock conversion, a llama-quantize
output, an older basal GGUF) instead of running the converter; MODEL then only
supplies tokenizer.json and CALIBRATION.json, downloaded without the weights.
The output must differ from the input, a GGUF whose vocabulary differs from
tokenizer.json is refused, and decision metadata of the input is dropped
unless --ollama-decision is given.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…F docs

docs/GGUF.md "Convert yourself" uses basal-export-gguf for conversions with the
tokenizer fix of the -GGUF repositories and shows the --gguf repair of existing
files (the basal-1.0 conversions it links carry the stock tokenizer). A new
section describes the experimental Ollama /v1/systemone encoding for basal-1.5,
its limitations and a table for the 1.5 measurements; the basal-1.0 numbers stay,
labelled. PORTS.md and the README point to the tool.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The added tokens of tokenizer.json now get the converter's -1000 instead of
keeping the input file's score, so fixing a file written by the earlier
convention (every unranked token at -(1 + number of merges), as in the
basal-1.0 Ollama files) gives the -GGUF files' scores. Stock conversions and
the -GGUF files already carry -1000 there: fixing basal-1.5-mini-Q8_0.gguf
still leaves it byte-identical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…an errors

- The temperatures come from CALIBRATION.ollama.json when the model ships it,
  else CALIBRATION.json, as basal-serve --mode ollama chooses.
- A model directory with config.json must describe the GGUF's model (layers,
  hidden size, vocabulary, the check of basal-serve --mode gguf); otherwise
  another model's temperatures would be written. The -GGUF folders have no
  config.json (their .gguf files belong to them), so the tool prints the
  calibration file, the model (basal.json) and the temperatures it wrote.
  --gguf now also downloads config.json, basal.json and
  CALIBRATION.ollama.json.
- A model without tokenizer.json (e.g. a third-party GGUF repository), or
  without its calibration with --ollama-decision, gets a usage error naming
  the model instead of a traceback with a cache path.
- The missing-gguf hint works outside a clone too: uv pip install "gguf>=0.19"
  (the gguf-export extra; -e ".[gguf-export]" from a clone). "basal" on PyPI
  is an unrelated package, so the hint does not name it.
- --help works under python -OO.

Tests: every decision temperature with its own value and the GGUF value types
of the rewritten fields; the converter path with a stand-in converter on a
local model folder (arguments, temporary file next to the output, no
download).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…all from a clone

- The endpoint ships in Ollama (since 0.35); only the basal encoding is
  proposed (ollama/ollama#18760). Ollama releases do not have it (0.40.2
  answers "unsupported decision encoding"), and the supported route there is
  basal-serve --mode ollama with the -GGUF files as shipped.
- The empty basal-1.5 table is removed; the basal-1.0 measurement is kept in
  two sentences (full table: docs/GGUF.md in e21e51a).
- Evidence spans need the PyTorch engine, not --mode ollama.
- --ollama-decision reads CALIBRATION.ollama.json when shipped.
- basal-export-gguf is not in a release yet: install basal from a clone into
  the converter environment and call ~/gguf-env/bin/basal-export-gguf in
  every example.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lama schema notes

- The --ollama-decision config check compares the model's shape only, and
  basal-1.0 and basal-1.5 models of one size share it: the message now says
  "config.json has the GGUF's shape (... layers, ... wide, ... tokens)" and the
  docstring names the limit; a config.json without num_hidden_layers or
  hidden_size is refused (as basal-serve --mode gguf does) instead of passing.
- A directory as the output file is refused before any download or conversion.
- Tests: the vocabulary length guard, a missing --gguf input, a directory as the
  output, the missing config key, and a conversion from a repo id downloading the
  whole model (no allow_patterns).
- docs/GGUF.md: one bullet on Ollama's request and answer schema (criteria
  forms, no option_keys, state rendering, entropy-based confidence, noul
  answers without probabilities) replaces two narrower ones.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@pdurlej pdurlej changed the title basal-export-gguf: tokenizer GGUF identyczny z HF + basal natywnie w Ollamie (/v1/systemone) basal-export-gguf: tokenizer jak w plikach -GGUF 1.5 + naprawa istniejących GGUF-ów Oct 9, 2026
@pdurlej

pdurlej commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor Author

@rkinas zaktualizowałem PR pod basal 1.5 (opis wyżej jest nowy). W skrócie: basal-export-gguf odtwarza teraz pola tokenizera Twoich plików -GGUF 1.5 bit w bit, a --gguf naprawia istniejące GGUF-y bez ponownej konwersji. Konflikty rozwiązane merge'em z main, testy przechodzą. Część o natywnej Ollamie jest krótka i oznaczona jako eksperymentalna; jeśli wolisz bez niej, wytnę.

Przy okazji: Twoje pliki 1.5 są też na https://ollama.com/pdurlej/basal do użycia z basal-serve --mode ollama. Jeśli chcesz je wydać sam, usunę.

@rkinas

rkinas commented Oct 14, 2026

Copy link
Copy Markdown
Owner

Dzięki, to brakujący publiczny element: docs/PORTS.md opisuje te trzy poprawki tokenizera, a narzędzia w repo nie było. Chcę to scalić w 2.0.x. Do zrobienia: (1) merge z main v2.0.0 (konflikty: README, docs/GGUF.md, pyproject.toml, uv.lock); (2) bez części o natywnej Ollamie, bo jak piszesz, nie działa na wydanej Ollamie; (3) sprawdzenie na 2.0: --gguf na plikach basal-2.0--GGUF daje te same bajty, a konwersja z HF odtwarza pola tokenizer.. Jeśli wolisz, rebase zrobię po naszej stronie.

pdurlej and others added 2 commits October 14, 2026 19:25
README.md and docs/GGUF.md are taken from basal 2.0.0; the basal-export-gguf
documentation is re-added on top of them in a later commit. pyproject.toml keeps
the gguf-export extra and the basal-export-gguf script; uv.lock adds only gguf
0.19.0 to upstream's lockfile (uv lock --check passes).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The --ollama-decision flag and the <arch>.decision.* keys are removed: the
encoding they were written for is not in any Ollama release. The tool now only
converts (or, with --gguf, fixes) a GGUF so that its tokenizer fields equal the
-GGUF repositories'; with --gguf the model supplies tokenizer.json only. Keys
written by the earlier draft are still dropped from an input file.

Checked on the basal-2.0 -GGUF files: fixing each of the six (mini, 4.5B, max;
Q8_0, Q5_K_M) gives the same bytes; the fixed tokenizer fields of a stock
conversion equal theirs on all three models (13 of 13 keys; stock: 10-11); a
converter-mode Q8_0 of basal-2.0-mini has the same tokenizer fields and the
same 515 tensors as the published file.

docs/GGUF.md "Convert yourself" uses the tool with basal-2.0; the Ollama
/v1/systemone section is gone; INSTALL.md and PORTS.md point to the tool.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@pdurlej pdurlej changed the title basal-export-gguf: tokenizer jak w plikach -GGUF 1.5 + naprawa istniejących GGUF-ów basal-export-gguf: GGUF z tokenizerem jak w plikach -GGUF (konwersja i naprawa) Oct 14, 2026
@pdurlej

pdurlej commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

@rkinas zrobione po mojej stronie (opis PR-a jest nowy):

  1. merge z main 2.0.0 (README, docs/GGUF.md, pyproject, uv.lock rozwiązane; w locku tylko dopisany gguf);
  2. część o natywnej Ollamie wycięta w całości: flaga --ollama-decision, metadane, testy i sekcja w docs;
  3. sprawdzenie na 2.0: --gguf na wszystkich 6 plikach basal-2.0-*-GGUF daje te same bajty, a konwersja z HF odtwarza 13/13 pól tokenizer.* dla mini, 4.5B i max (na mini także 515/515 tensorów).

pytest -q tests: 516 passed, 15 skipped. Czerwony check Sourcery to stary fałszywy alarm o subprocess.run z listą argumentów (bez shella), odpowiedziałem na niego wcześniej w wątku.

@pdurlej

pdurlej commented Oct 16, 2026

Copy link
Copy Markdown
Contributor Author

@rkinas mergujemy zanim main odjedzie jeszcze bardziej 🙏 ?

@rkinas

rkinas commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Dzięki! Wszystko z listy z 14.10 zrobione; testy przechodzą także po scaleniu z obecnym main (519 + 16 testów basal-export-gguf). Scalam, wejdzie w basal 2.2.0 (poniedziałek 19.10) z podziękowaniem w notach wydania.

@rkinas

rkinas commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Ok. I am merging it now. It will be in 2.2. Than you for your contribution.

@rkinas
rkinas merged commit c483700 into rkinas:main Oct 19, 2026
1 check failed
rkinas added a commit that referenced this pull request Oct 19, 2026
…lready locked)

uv lock changes only basal's own version line; uv export of the default install and of every existing extra is identical to calib-2.2's lock; gguf-export adds gguf 0.19.0.
rkinas added a commit that referenced this pull request Oct 19, 2026
…cture models

basal-omni (Gemma 4) is converted with llama.cpp's converter alone (Files); the tokenizer fix was checked on basal-1.0 / 1.5 / 2.0 only.
rkinas added a commit that referenced this pull request Oct 19, 2026
One line per external contributor whose commits are in main or in 2.2, with what they added and the PR: Paweł Kiszczak (#4), Piotr Durlej (#8), Kuba Sołtys (#15), Michał Kardyś (#14); names from their GitHub profiles and commit authors. README and WHATS_NEW 2.2 list basal-export-gguf, --mode tpu and --mode strix; NOTICE names the contributors.
@rkinas

rkinas commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Thank you, Piotr! basal-export-gguf is merged and ships in basal v2.2.0
(https://github.com/rkinas/basal/releases/tag/v2.2.0), with your commits exactly as you wrote them.

What we added on top:

  • merged it with the 2.2.0 engine: the only conflict was the optional extras in pyproject.toml (2.2.0 raised
    llama-cpp-python to 0.3.36 for basal-omni; gguf-export sits next to it). uv.lock resolves as before;
  • docs/GGUF.md credits the tool to you and says it is for the Llama-architecture models (basal-1.0, 1.5, 2.0):
    basal-omni (Gemma 4) is converted with llama.cpp's converter alone;
  • the README has a new "Contributors" section, and you are in it.

Your 16 tests pass on 2.2.0 (gguf 0.19.0), next to the full suite.

If you'd like, we'd be glad to list you in CODEOWNERS for basal/gguf_export.py and tests/test_gguf_export.py, so
that changes there come to you for review. Entirely optional: just say so here.

@pdurlej

pdurlej commented Oct 19, 2026

Copy link
Copy Markdown
Contributor Author

Dzięki za merge i za wpis w Contributors.

CODEOWNERS: tak, wpisz mnie. Z jasnym zakresem: pilnuję tego od strony użytkownika końcowego Ollamy, czyli czy pliki po zmianie nadal wychodzą bajt w bajt jak Twoje -GGUF i czy na Ollamie dają te same odpowiedzi, na moich maszynach. Projekt kodu to Twoja i Pawła działka. Nie czekajcie na mnie z merge'em; jeśli nie odpowiem w kilka dni, scalaj.

Idąc za tym: biorę na siebie wydania basala na ollama.com. Pliki omni (basal-omni-1.0-mini i -max, Q8_0 i Q6_K, bez zmian) są w drodze; sprawdziłem już mini na Ollamie 0.40.2 z silnikiem 2.2.0 (--mode ollama, gemma4 wczytany, odpowiedzi z kalibracją). Porządkuję przy okazji stronę: jedno repozytorium pdurlej/basal z tagami per rodzina i rozmiar (2.0-4.5b, omni-12b, …) zamiast osobnych stron na wersję, żeby pobrania i opis były w jednym miejscu. Jeśli wolisz, żeby to szło pod Twoim kontem albo pod inną nazwą, powiedz.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants