Instructions to use sandeshrajx/qwopus-lora-tests with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sandeshrajx/qwopus-lora-tests with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sandeshrajx/qwopus-lora-tests", device_map="auto") - llama-cpp-python
How to use sandeshrajx/qwopus-lora-tests with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="sandeshrajx/qwopus-lora-tests", filename="gguf-merged/Flagstone8878-Qwen3.5-18B-REAP-A3B-Coding-qwopus-merged-Q4_K_M.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use sandeshrajx/qwopus-lora-tests with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf sandeshrajx/qwopus-lora-tests:Q4_K_M # Run inference directly in the terminal: llama cli -hf sandeshrajx/qwopus-lora-tests:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sandeshrajx/qwopus-lora-tests:Q4_K_M # Run inference directly in the terminal: llama cli -hf sandeshrajx/qwopus-lora-tests:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf sandeshrajx/qwopus-lora-tests:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf sandeshrajx/qwopus-lora-tests:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf sandeshrajx/qwopus-lora-tests:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf sandeshrajx/qwopus-lora-tests:Q4_K_M
Use Docker
docker model run hf.co/sandeshrajx/qwopus-lora-tests:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use sandeshrajx/qwopus-lora-tests with Ollama:
ollama run hf.co/sandeshrajx/qwopus-lora-tests:Q4_K_M
- Unsloth Studio
How to use sandeshrajx/qwopus-lora-tests with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sandeshrajx/qwopus-lora-tests to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for sandeshrajx/qwopus-lora-tests to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for sandeshrajx/qwopus-lora-tests to start chatting
- Pi
How to use sandeshrajx/qwopus-lora-tests with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sandeshrajx/qwopus-lora-tests:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "sandeshrajx/qwopus-lora-tests:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use sandeshrajx/qwopus-lora-tests with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sandeshrajx/qwopus-lora-tests:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default sandeshrajx/qwopus-lora-tests:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use sandeshrajx/qwopus-lora-tests with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf sandeshrajx/qwopus-lora-tests:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "sandeshrajx/qwopus-lora-tests:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use sandeshrajx/qwopus-lora-tests with Docker Model Runner:
docker model run hf.co/sandeshrajx/qwopus-lora-tests:Q4_K_M
- Lemonade
How to use sandeshrajx/qwopus-lora-tests with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sandeshrajx/qwopus-lora-tests:Q4_K_M
Run and chat with the model
lemonade run user.qwopus-lora-tests-Q4_K_M
List all available models
lemonade list
Unsloth Model Card
Browse files
README.md
CHANGED
|
@@ -1,104 +1,21 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
base_model: Flagstone8878/Qwen3.5-18B-REAP-A3B-Coding
|
| 4 |
tags:
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
- gguf
|
| 13 |
-
library_name: peft
|
| 14 |
-
pipeline_tag: text-generation
|
| 15 |
---
|
| 16 |
|
| 17 |
-
#
|
| 18 |
-
|
| 19 |
-
LoRA adapters and GGUF exports from an experimental Qwen 3.5 18B REAP-A3B coding fine-tune on Opus-distilled reasoning and coding data.
|
| 20 |
-
|
| 21 |
-
## What This Repo Contains
|
| 22 |
-
|
| 23 |
-
This repo is being used to compare a base checkpoint against a lightweight supervised fine-tune focused on coding-style outputs with explicit `<think>...</think>` reasoning scaffolds.
|
| 24 |
-
|
| 25 |
-
It contains:
|
| 26 |
-
|
| 27 |
-
- A LoRA adapter trained from `Flagstone8878/Qwen3.5-18B-REAP-A3B-Coding`
|
| 28 |
-
- Matching tokenizer files required to load the adapter
|
| 29 |
-
- GGUF exports for llama.cpp-compatible testing
|
| 30 |
-
|
| 31 |
-
## Training Setup
|
| 32 |
-
|
| 33 |
-
- Base model: `Flagstone8878/Qwen3.5-18B-REAP-A3B-Coding`
|
| 34 |
-
- Dataset: `nohurry/Opus-4.6-Reasoning-3000x-filtered`
|
| 35 |
-
- Run name: `qwen35-18b-reap-a3b-coding-opus-msl8192-e2_0-lr2e4`
|
| 36 |
-
- Context length: `8192`
|
| 37 |
-
- Epochs: `2.0`
|
| 38 |
-
- Learning rate: `0.0002`
|
| 39 |
-
- Effective batch size: `24`
|
| 40 |
-
- Observed steps: `194`
|
| 41 |
-
- Final reported train loss: `0.5748463515768346`
|
| 42 |
-
|
| 43 |
-
## Goal
|
| 44 |
-
|
| 45 |
-
The current goal is not to claim a production-quality coding model. This is an iterative testing repo for:
|
| 46 |
-
|
| 47 |
-
- checking whether the LoRA improves structure and responsiveness versus the base model
|
| 48 |
-
- measuring how well the model handles coding prompts with reasoning traces
|
| 49 |
-
- comparing adapter behavior and GGUF behavior across different inference stacks
|
| 50 |
-
|
| 51 |
-
## Prompt Format
|
| 52 |
-
|
| 53 |
-
Training examples were rendered in Qwen chat format. Assistant messages were structured like:
|
| 54 |
-
|
| 55 |
-
```text
|
| 56 |
-
<think>
|
| 57 |
-
...reasoning...
|
| 58 |
-
</think>
|
| 59 |
-
|
| 60 |
-
...final answer...
|
| 61 |
-
```
|
| 62 |
-
|
| 63 |
-
Response-only loss masking was applied starting at:
|
| 64 |
-
|
| 65 |
-
```text
|
| 66 |
-
<|im_start|>assistant
|
| 67 |
-
<think>
|
| 68 |
-
```
|
| 69 |
-
|
| 70 |
-
That means the opening `<think>` token itself was used as the masking boundary during training.
|
| 71 |
-
|
| 72 |
-
## Current Quality Notes
|
| 73 |
-
|
| 74 |
-
This is an experimental checkpoint. Early prompt testing shows that the LoRA can produce shorter and more coherent outputs than the untouched base model on some coding prompts, but the generated code is still not consistently correct or production-ready.
|
| 75 |
-
|
| 76 |
-
Use it for:
|
| 77 |
-
|
| 78 |
-
- comparative testing
|
| 79 |
-
- prompt behavior inspection
|
| 80 |
-
- llama.cpp / GGUF experiments
|
| 81 |
-
|
| 82 |
-
Do not assume it is a fully validated coding model.
|
| 83 |
-
|
| 84 |
-
## Loading The LoRA
|
| 85 |
-
|
| 86 |
-
Use the adapter with the original base model:
|
| 87 |
-
|
| 88 |
-
```python
|
| 89 |
-
from transformers import AutoTokenizer
|
| 90 |
-
from peft import AutoPeftModelForCausalLM
|
| 91 |
-
|
| 92 |
-
model = AutoPeftModelForCausalLM.from_pretrained("sandeshrajx/qwopus-lora-tests", trust_remote_code=True)
|
| 93 |
-
tokenizer = AutoTokenizer.from_pretrained("sandeshrajx/qwopus-lora-tests", trust_remote_code=True, use_fast=False)
|
| 94 |
-
```
|
| 95 |
-
|
| 96 |
-
If your runtime expects the original base model separately, load `Flagstone8878/Qwen3.5-18B-REAP-A3B-Coding` and then attach the adapter from this repo.
|
| 97 |
-
|
| 98 |
-
## GGUF Notes
|
| 99 |
|
| 100 |
-
|
|
|
|
|
|
|
| 101 |
|
| 102 |
-
|
| 103 |
|
| 104 |
-
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model: sandeshrajx/qwopus-lora-tests
|
|
|
|
| 3 |
tags:
|
| 4 |
+
- text-generation-inference
|
| 5 |
+
- transformers
|
| 6 |
+
- unsloth
|
| 7 |
+
- qwen3_5_moe
|
| 8 |
+
license: apache-2.0
|
| 9 |
+
language:
|
| 10 |
+
- en
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
+
# Uploaded finetuned model
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
- **Developed by:** sandeshrajx
|
| 16 |
+
- **License:** apache-2.0
|
| 17 |
+
- **Finetuned from model :** sandeshrajx/qwopus-lora-tests
|
| 18 |
|
| 19 |
+
This qwen3_5_moe model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
|
| 20 |
|
| 21 |
+
[<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
|