Instructions to use Netuoso/Octoneer-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Netuoso/Octoneer-27B with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3.8-27B") model = PeftModel.from_pretrained(base_model, "Netuoso/Octoneer-27B") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Netuoso/Octoneer-27B: direct link, hf CLI and curl.
- Browser
- Download file 7.11 kB
-
https://huggingface.co/Netuoso/Octoneer-27B/resolve/main/README.md
- Command line
-
hf download hf://Netuoso/Octoneer-27B/README.md
-
curl -L -o README.md https://huggingface.co/Netuoso/Octoneer-27B/resolve/main/README.md
7.11 kB
| base_model: Qwen/Qwen3.8-27B | |
| base_model_relation: adapter | |
| library_name: peft | |
| pipeline_tag: text-generation | |
| tags: | |
| - lora | |
| - peft | |
| - qwen3_5 | |
| - octoneer | |
| - conversational | |
| - code | |
| - reasoning | |
|  | |
| <div align="center"> | |
| [](https://huggingface.co/Qwen/Qwen3.8-27B) | |
| [](adapter_config.json) | |
| [](adapter_config.json) | |
| [](https://huggingface.co/spaces/Netuoso/Qwepus-ZeroGPU) | |
| **Careful reasoning. Practical code. Clear answers.** | |
| [Private web demo](https://huggingface.co/spaces/Netuoso/Qwepus-ZeroGPU) · [Adapter config](adapter_config.json) · [Chat template](chat_template.jinja) | |
| </div> | |
| --- | |
| ## Meet Octoneer 🐙 | |
| Octoneer is a **LoRA adapter for Qwen3.8-27B**, built around a simple assistant persona: | |
| be careful, respect the request, and give clear, practical answers. | |
| Use it for conversations, coding tasks and problems that benefit from working | |
| through the details. The included chat template supports both **thinking** and | |
| **direct-answer** modes. | |
| This repository contains the adapter and its tokenizer, chat template and prompt | |
| settings. Load it together with the matching Qwen base checkpoint. The example | |
| below uses the current **Octoneer** name in the system prompt; the pinned | |
| checkpoint retains its original prompt file. | |
| ## At a glance | |
| | | This release | | |
| |:--|:--| | |
| | **Base model** | [Qwen/Qwen3.8-27B](https://huggingface.co/Qwen/Qwen3.8-27B) | | |
| | **Adapter** | PEFT LoRA · causal language modeling | | |
| | **Rank / alpha** | `r = 32` · `alpha = 64` | | |
| | **LoRA dropout** | `0.05` | | |
| | **Adapter parameters** | 233,455,616 | | |
| | **Stored adapter weights** | Float32 · approximately 934 MB | | |
| | **Target projections** | Attention, linear-attention and feed-forward projections | | |
| | **Default thinking** | Enabled · `medium` effort · preserved across turns | | |
| <details> | |
| <summary><strong>Exact target modules and checkpoint revisions</strong></summary> | |
| ```text | |
| q_proj, k_proj, v_proj, o_proj | |
| in_proj_qkv, in_proj_z, in_proj_a, in_proj_b, out_proj | |
| gate_proj, up_proj, down_proj | |
| ``` | |
| The adapter was saved against base revision: | |
| ```text | |
| 1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0 | |
| ``` | |
| The inference example below pins adapter revision | |
| `e2c1aa8c363f57306890753b85c46435ec856411`, which contains the released weights. | |
| Documentation updates do not require a different checkpoint. | |
| </details> | |
| ## Private web demo | |
| **[Open the private ZeroGPU demo →](https://huggingface.co/spaces/Netuoso/Qwepus-ZeroGPU)** | |
| The Space runs the base and this adapter in BF16 on ZeroGPU `xlarge`. It has | |
| streaming replies, editable messages, a stop button and generation controls: | |
| - Up to **16,384 output tokens**, including thinking; **4096** by default. | |
| - **32,768 tokens** of total context, including conversation history and output. | |
| - A selectable time budget of **60–600 seconds**, subject to ZeroGPU quota. | |
| For a long code answer, increase the token and time budgets. Turn thinking off | |
| when you want the output budget to go entirely to the final answer. | |
| The Space is currently **private**: sign in as its owner or an authorized | |
| collaborator to open it. The model repository itself is public. | |
| ## Run with Transformers + PEFT | |
| Install the same core library versions used by the Space: | |
| ```bash | |
| pip install "torch==2.13.0" "transformers==5.22.0" "peft==0.21.2" "accelerate==1.15.0" | |
| ``` | |
| <details open> | |
| <summary><strong>Python · load the base, attach Octoneer, generate</strong></summary> | |
| ```python | |
| import torch | |
| from peft import PeftModel | |
| from transformers import AutoTokenizer, Qwen3_5ForConditionalGeneration | |
| ADAPTER = "Netuoso/Octoneer-27B" | |
| ADAPTER_REV = "e2c1aa8c363f57306890753b85c46435ec856411" | |
| BASE_REV = "1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0" | |
| tokenizer = AutoTokenizer.from_pretrained(ADAPTER, revision=ADAPTER_REV) | |
| base = Qwen3_5ForConditionalGeneration.from_pretrained( | |
| "Qwen/Qwen3.8-27B", | |
| revision=BASE_REV, | |
| dtype=torch.bfloat16, | |
| device_map="auto", | |
| attn_implementation="sdpa", | |
| ) | |
| model = PeftModel.from_pretrained( | |
| base, ADAPTER, revision=ADAPTER_REV, | |
| torch_device="cpu", autocast_adapter_dtype=False, | |
| ).eval() | |
| # Use the current assistant name with the original checkpoint. | |
| system_prompt = ( | |
| "You are Octoneer, a careful and helpful assistant. Give accurate, clear answers, " | |
| "respect the user's constraints, and explain solutions at an appropriate level. " | |
| "When writing code, prefer correct, practical implementations." | |
| ) | |
| messages = [ | |
| {"role": "system", "content": system_prompt}, | |
| {"role": "user", "content": "Write a Python function that groups anagrams, with tests."}, | |
| ] | |
| inputs = tokenizer.apply_chat_template( | |
| messages, | |
| tokenize=True, | |
| add_generation_prompt=True, | |
| return_dict=True, | |
| return_tensors="pt", | |
| enable_thinking=True, | |
| preserve_thinking=True, | |
| reasoning_effort="medium", | |
| ) | |
| inputs = {name: value.to(model.device) for name, value in inputs.items()} | |
| with torch.inference_mode(): | |
| output = model.generate( | |
| **inputs, | |
| max_new_tokens=4096, | |
| do_sample=True, | |
| temperature=1.0, | |
| top_p=0.95, | |
| top_k=20, | |
| pad_token_id=tokenizer.pad_token_id or tokenizer.eos_token_id, | |
| eos_token_id=tokenizer.eos_token_id, | |
| ) | |
| print(tokenizer.decode(output[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True)) | |
| ``` | |
| </details> | |
| Qwen3.8-27B uses the `Qwen3_5ForConditionalGeneration` implementation in | |
| Transformers. The example loads the full base checkpoint; plan memory for the | |
| base, adapter, context cache and generation overhead. The hosted Space uses | |
| the 96 GB ZeroGPU allocation. | |
| ## Thinking, your way | |
| | Mode | Template settings | | |
| |:--|:--| | |
| | **Quick and direct** | `enable_thinking=False` | | |
| | **Brief reasoning** | `enable_thinking=True, reasoning_effort="low"` | | |
| | **Default** | `enable_thinking=True, reasoning_effort="medium"` | | |
| | **More deliberate** | `enable_thinking=True, reasoning_effort="xhigh"` | | |
| The template emits thinking inside `<think>…</think>`. For multi-turn use, | |
| pass the previous answer as `content` and its thinking as `reasoning_content`; | |
| `preserve_thinking=True` keeps that context available to the model. | |
| <details> | |
| <summary><strong>Suggested system prompt for Octoneer</strong></summary> | |
| > You are Octoneer, a careful and helpful assistant. Give accurate, clear answers, | |
| > respect the user's constraints, and explain solutions at an appropriate level. | |
| > When writing code, prefer correct, practical implementations. | |
| </details> | |
| --- | |
| <div align="center"> | |
| **Octoneer by [Netuoso](https://huggingface.co/Netuoso)** 🐙 | |
| [Base model](https://huggingface.co/Qwen/Qwen3.8-27B) · [PEFT](https://huggingface.co/docs/peft) · [ZeroGPU](https://huggingface.co/docs/hub/spaces-zerogpu) | |
| </div> | |