FoolDev Claude Opus 4.7 commited on
Commit
b420378
Β·
1 Parent(s): 87c73c9

docs: add safetensors mirror of Qwen/Qwen3.6-27B

Browse files

Transformers-loadable safetensors are now mirrored in this repo via
`hf upload-large-folder`. Tensor data byte-identical to upstream.

- README: new rows in "What's here" for shards/configs/tokenizer;
"If you want safetensors" pointer replaced with a one-paragraph
note that they're now in this repo; "Related models" row notes
the mirror.
- examples/README.md: transformers row description updated.
- examples/transformers_quickstart.py: MODEL_ID defaults to
FoolDev/Thanatos-27B; docstring rewritten.
- CHANGELOG: new "Added" entry under [Unreleased].

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ and documentation**, not the underlying base model.
7
 
8
  ## [Unreleased]
9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  ### Changed (4th round trip β€” qwen36 β†’ qwen35, friction concretely tested)
11
  - **Bundle re-stamped `general.architecture: 'qwen36'` β†’ `'qwen35'`**
12
  in `hf upload` commit `978798f` (HF). Fourth stamp flip on the
 
7
 
8
  ## [Unreleased]
9
 
10
+ ### Added (safetensors mirror)
11
+ - **Mirrored Qwen/Qwen3.6-27B's transformers-loadable safetensors
12
+ set into this repo.** 15 sharded `.safetensors` files (~58 GB
13
+ total) + `model.safetensors.index.json` + tokenizer files
14
+ (`tokenizer.json`, `tokenizer_config.json`, `vocab.json`,
15
+ `merges.txt`) + configs (`config.json`, `configuration.json`,
16
+ `generation_config.json`, `preprocessor_config.json`,
17
+ `video_preprocessor_config.json`) + `chat_template.jinja`.
18
+ Tensor data byte-identical to upstream; the mirror saves a
19
+ second `hf download` for users who want both GGUF + safetensors
20
+ in one place. `.gitignore` was updated separately (commit
21
+ `0c5bee4`) to whitelist the Qwen sharded naming pattern before
22
+ the upload's preupload check ran (HF reads the destination
23
+ repo's `.gitignore` to decide `shouldIgnore` per file).
24
+ - `examples/transformers_quickstart.py` now defaults `MODEL_ID`
25
+ to `FoolDev/Thanatos-27B` so a fresh user only needs to pull
26
+ this repo to get a working transformers entry point.
27
+
28
  ### Changed (4th round trip β€” qwen36 β†’ qwen35, friction concretely tested)
29
  - **Bundle re-stamped `general.architecture: 'qwen36'` β†’ `'qwen35'`**
30
  in `hf upload` commit `978798f` (HF). Fourth stamp flip on the
README.md CHANGED
@@ -125,6 +125,9 @@ The 27B is **dense**: every parameter participates in every forward pass. It's s
125
  | `scripts/verify_arch.py` | Cross-checks the README "Architecture" forward-pass bullets (layer count, head counts, hidden / FFN dims, RoPE factor, SSM dims, vocab, context) against the actual GGUF metadata keys. Run as `make verify-arch`. Handles both `qwen35`- and `qwen36`-stamped bundles; exit non-zero if any value mismatches. Not part of `make check` because it loads the 17 GB GGUF (LFS smudge required); run on demand. |
126
  | `scripts/install-hooks.sh` | Installs `check.sh` as a git pre-commit hook |
127
  | `Makefile` | Convenience wrapper β€” `make help` lists targets |
 
 
 
128
  | `LICENSE`, `CITATION.cff` | Apache-2.0 license and citation metadata |
129
  | `CHANGELOG.md` | Versioned tooling/docs changes |
130
  | `README.md` | This file |
@@ -138,7 +141,14 @@ local-build path applies this repo's `Modelfile`; the `hf.co/...`
138
  path applies the root-level `template`, `system`, and `params`
139
  files (kept in sync with the `Modelfile`).
140
 
141
- If you want the safetensors for `transformers`, fetch them from [`Qwen/Qwen3.6-27B`](https://huggingface.co/Qwen/Qwen3.6-27B).
 
 
 
 
 
 
 
142
 
143
  ## Architecture
144
 
@@ -551,7 +561,7 @@ python examples/ollama_chat.py # section 3 runs a real round-trip
551
 
552
  | Model | Notes |
553
  |---|---|
554
- | [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B) | Upstream base, safetensors |
555
  | [unsloth/Qwen3.6-27B-GGUF](https://huggingface.co/unsloth/Qwen3.6-27B-GGUF) | Recommended GGUF source |
556
  | [FoolDev/Janus-35B](https://huggingface.co/FoolDev/Janus-35B) | 35B-A3B MoE sibling. More capacity, more memory pressure. |
557
  | [Crownelius/Crow-9B-HERETIC-4.6](https://huggingface.co/Crownelius/Crow-9B-HERETIC-4.6) | 9B starter model when 27B/35B is too heavy |
 
125
  | `scripts/verify_arch.py` | Cross-checks the README "Architecture" forward-pass bullets (layer count, head counts, hidden / FFN dims, RoPE factor, SSM dims, vocab, context) against the actual GGUF metadata keys. Run as `make verify-arch`. Handles both `qwen35`- and `qwen36`-stamped bundles; exit non-zero if any value mismatches. Not part of `make check` because it loads the 17 GB GGUF (LFS smudge required); run on demand. |
126
  | `scripts/install-hooks.sh` | Installs `check.sh` as a git pre-commit hook |
127
  | `Makefile` | Convenience wrapper β€” `make help` lists targets |
128
+ | `model-*-of-00015.safetensors` (15 files, ~58 GB) + `model.safetensors.index.json` | Transformers-loadable safetensors mirror of `Qwen/Qwen3.6-27B`. Byte-identical to upstream. |
129
+ | `config.json`, `configuration.json`, `generation_config.json`, `preprocessor_config.json`, `video_preprocessor_config.json`, `chat_template.jinja` | Model + processor + chat-template configs mirrored from upstream β€” what `from_pretrained` needs. |
130
+ | `tokenizer.json`, `tokenizer_config.json`, `vocab.json`, `merges.txt` | Tokenizer files mirrored from upstream. |
131
  | `LICENSE`, `CITATION.cff` | Apache-2.0 license and citation metadata |
132
  | `CHANGELOG.md` | Versioned tooling/docs changes |
133
  | `README.md` | This file |
 
141
  path applies the root-level `template`, `system`, and `params`
142
  files (kept in sync with the `Modelfile`).
143
 
144
+ The transformers safetensors set is mirrored in this repo
145
+ (15 sharded `.safetensors` files + index + tokenizer + configs
146
+ + chat template), so `AutoModelForCausalLM.from_pretrained(
147
+ "FoolDev/Thanatos-27B")` works directly. Tensor data is
148
+ byte-identical to upstream [`Qwen/Qwen3.6-27B`](https://huggingface.co/Qwen/Qwen3.6-27B);
149
+ the mirror exists so consumers don't need a second pull from
150
+ two repos to assemble the full toolkit (GGUF + safetensors +
151
+ mmproj reference).
152
 
153
  ## Architecture
154
 
 
561
 
562
  | Model | Notes |
563
  |---|---|
564
+ | [Qwen/Qwen3.6-27B](https://huggingface.co/Qwen/Qwen3.6-27B) | Upstream base, safetensors (this repo mirrors them) |
565
  | [unsloth/Qwen3.6-27B-GGUF](https://huggingface.co/unsloth/Qwen3.6-27B-GGUF) | Recommended GGUF source |
566
  | [FoolDev/Janus-35B](https://huggingface.co/FoolDev/Janus-35B) | 35B-A3B MoE sibling. More capacity, more memory pressure. |
567
  | [Crownelius/Crow-9B-HERETIC-4.6](https://huggingface.co/Crownelius/Crow-9B-HERETIC-4.6) | 9B starter model when 27B/35B is too heavy |
examples/README.md CHANGED
@@ -5,7 +5,7 @@ Four minimal entry points. Pick the one that matches how you run models.
5
  | File | Backend | When to use |
6
  |---|---|---|
7
  | `ollama_chat.py` | Ollama HTTP API | You already have `ollama serve` running and the `thanatos-27b` model created from the project `Modelfile`. **Text + tool calling** β€” vision via Ollama is broken upstream for this arch. |
8
- | `transformers_quickstart.py` | Hugging Face Transformers | You want to run the upstream safetensors (`Qwen/Qwen3.6-27B`) on GPU, optionally in 4-bit via bitsandbytes. |
9
  | `llama_cpp_quickstart.py` | llama-cpp-python | You want to invoke a local GGUF directly without a daemon (CI, batch jobs, scripts). Text only. |
10
  | `llama_cpp_vision.py` | llama-cpp-python + mmproj | **Image input.** Loads a text GGUF + `mmproj-F16.gguf` and answers questions about an image. The only working vision path right now. |
11
 
 
5
  | File | Backend | When to use |
6
  |---|---|---|
7
  | `ollama_chat.py` | Ollama HTTP API | You already have `ollama serve` running and the `thanatos-27b` model created from the project `Modelfile`. **Text + tool calling** β€” vision via Ollama is broken upstream for this arch. |
8
+ | `transformers_quickstart.py` | Hugging Face Transformers | You want to run the safetensors on GPU (this repo mirrors them from `Qwen/Qwen3.6-27B`), optionally in 4-bit via bitsandbytes. |
9
  | `llama_cpp_quickstart.py` | llama-cpp-python | You want to invoke a local GGUF directly without a daemon (CI, batch jobs, scripts). Text only. |
10
  | `llama_cpp_vision.py` | llama-cpp-python + mmproj | **Image input.** Loads a text GGUF + `mmproj-F16.gguf` and answers questions about an image. The only working vision path right now. |
11
 
examples/transformers_quickstart.py CHANGED
@@ -2,11 +2,14 @@
2
  """
3
  Thanatos-27B β€” Hugging Face Transformers quickstart.
4
 
5
- Loads the upstream Qwen 3.6 27B safetensors directly and runs a single
6
- chat turn using its embedded chat template. Thanatos-27B is a *wrapper*
7
- around that base, so for the transformers route there is nothing to
8
- download from this repo β€” point at Qwen/Qwen3.6-27B and apply the same
9
- system prompt the Modelfile uses.
 
 
 
10
 
11
  Requirements:
12
  pip install --upgrade "transformers>=4.45" accelerate sentencepiece bitsandbytes
@@ -36,7 +39,7 @@ except ImportError as e: # pragma: no cover
36
  )
37
 
38
 
39
- MODEL_ID = "Qwen/Qwen3.6-27B"
40
 
41
  THANATOS_SYSTEM = (
42
  "You are Thanatos, a precise and capable assistant for reasoning, writing, "
 
2
  """
3
  Thanatos-27B β€” Hugging Face Transformers quickstart.
4
 
5
+ Loads the Qwen 3.6 27B safetensors from this repo (a byte-identical
6
+ mirror of Qwen/Qwen3.6-27B's transformers set) and runs a single
7
+ chat turn using its embedded chat template. Applies the same
8
+ Thanatos system prompt the Modelfile / bridge `system` file uses.
9
+
10
+ `MODEL_ID` defaults to "FoolDev/Thanatos-27B" so the safetensors and
11
+ chat template come from this repo in one pull; flip it back to
12
+ "Qwen/Qwen3.6-27B" to source directly from upstream.
13
 
14
  Requirements:
15
  pip install --upgrade "transformers>=4.45" accelerate sentencepiece bitsandbytes
 
39
  )
40
 
41
 
42
+ MODEL_ID = "FoolDev/Thanatos-27B"
43
 
44
  THANATOS_SYSTEM = (
45
  "You are Thanatos, a precise and capable assistant for reasoning, writing, "