--- 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 --- ![Octoneer — Qwen3.8 27B LoRA](assets/banner.png)
[![Base](https://img.shields.io/badge/Qwen3.8-27B-74e6cf?style=flat-square&labelColor=111827)](https://huggingface.co/Qwen/Qwen3.8-27B) [![Adapter](https://img.shields.io/badge/PEFT-LoRA-ae97ff?style=flat-square&labelColor=111827)](adapter_config.json) [![Rank](https://img.shields.io/badge/Rank-32-9fc5ff?style=flat-square&labelColor=111827)](adapter_config.json) [![Chat](https://img.shields.io/badge/Demo-Private_Space-74e6cf?style=flat-square&labelColor=111827)](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)
--- ## 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 |
Exact target modules and checkpoint revisions ```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.
## 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" ```
Python · load the base, attach Octoneer, generate ```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)) ```
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 `…`. 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.
Suggested system prompt for Octoneer > 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.
---
**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)