Instructions to use Kylan12/qwen-quantum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Kylan12/qwen-quantum 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 Kylan12/qwen-quantum:Q4_K_M # Run inference directly in the terminal: llama cli -hf Kylan12/qwen-quantum:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Kylan12/qwen-quantum:Q4_K_M # Run inference directly in the terminal: llama cli -hf Kylan12/qwen-quantum: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 Kylan12/qwen-quantum:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Kylan12/qwen-quantum: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 Kylan12/qwen-quantum:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Kylan12/qwen-quantum:Q4_K_M
Use Docker
docker model run hf.co/Kylan12/qwen-quantum:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use Kylan12/qwen-quantum with Ollama:
ollama run hf.co/Kylan12/qwen-quantum:Q4_K_M
- Unsloth Desktop
- Pi
How to use Kylan12/qwen-quantum with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Kylan12/qwen-quantum:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Kylan12/qwen-quantum:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use Kylan12/qwen-quantum with Docker Model Runner:
docker model run hf.co/Kylan12/qwen-quantum:Q4_K_M
- Lemonade
How to use Kylan12/qwen-quantum with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Kylan12/qwen-quantum:Q4_K_M
Run and chat with the model
lemonade run user.qwen-quantum-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use Kylan12/qwen-quantum with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Kylan12/qwen-quantum: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 Kylan12/qwen-quantum:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Kylan12/qwen-quantum with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf Kylan12/qwen-quantum: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 "Kylan12/qwen-quantum: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"
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
+
tags:
|
| 6 |
+
- qwen2.5
|
| 7 |
+
- fine-tuned
|
| 8 |
+
- lora
|
| 9 |
+
- chemistry
|
| 10 |
+
base_model: Qwen/Qwen2.5-14B-Instruct
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# qwen-quantum
|
| 14 |
+
|
| 15 |
+
This model is a fine-tuned version of [Qwen/Qwen2.5-14B-Instruct](https://huggingface.co/Qwen/Qwen2.5-14B-Instruct)
|
| 16 |
+
using LoRA (Low-Rank Adaptation) on a chemistry dataset.
|
| 17 |
+
|
| 18 |
+
## Model Description
|
| 19 |
+
|
| 20 |
+
Fine-tuned Qwen2.5-14B model for chemistry domain tasks.
|
| 21 |
+
|
| 22 |
+
## Available Formats
|
| 23 |
+
|
| 24 |
+
- **GGUF**: `qwen_quantum_merged-q4_k_m.gguf` - Quantized for efficient inference with llama.cpp
|
| 25 |
+
|
| 26 |
+
## Usage
|
| 27 |
+
|
| 28 |
+
### Using GGUF (with llama.cpp, Ollama, LM Studio, etc.)
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
# Download the GGUF file
|
| 32 |
+
huggingface-cli download Kylan12/qwen-quantum qwen_quantum_merged-q4_k_m.gguf
|
| 33 |
+
|
| 34 |
+
# Use with llama.cpp
|
| 35 |
+
./llama.cpp/build/bin/llama-cli -m qwen_quantum_merged-q4_k_m.gguf -p "Your prompt here"
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
### Using HuggingFace Transformers
|
| 39 |
+
|
| 40 |
+
```python
|
| 41 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 42 |
+
|
| 43 |
+
model = AutoModelForCausalLM.from_pretrained("Kylan12/qwen-quantum")
|
| 44 |
+
tokenizer = AutoTokenizer.from_pretrained("Kylan12/qwen-quantum")
|
| 45 |
+
|
| 46 |
+
prompt = "What is the IUPAC name for..."
|
| 47 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 48 |
+
outputs = model.generate(**inputs, max_length=200)
|
| 49 |
+
print(tokenizer.decode(outputs[0]))
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
## Training Details
|
| 53 |
+
|
| 54 |
+
- **Base Model**: Qwen/Qwen2.5-14B-Instruct
|
| 55 |
+
- **Training Method**: LoRA (Low-Rank Adaptation)
|
| 56 |
+
- **Dataset**: camel-ai/chemistry
|
| 57 |
+
- **LoRA Rank**: 16
|
| 58 |
+
- **LoRA Alpha**: 16
|
| 59 |
+
- **Target Modules**: q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj
|
| 60 |
+
|
| 61 |
+
## Limitations
|
| 62 |
+
|
| 63 |
+
This model inherits the limitations of the base Qwen2.5-14B-Instruct model and may have
|
| 64 |
+
additional domain-specific limitations due to the fine-tuning dataset.
|
| 65 |
+
|
| 66 |
+
## Citation
|
| 67 |
+
|
| 68 |
+
If you use this model, please cite:
|
| 69 |
+
|
| 70 |
+
```bibtex
|
| 71 |
+
@misc{qwen_quantum,
|
| 72 |
+
author = {Your Name},
|
| 73 |
+
title = {qwen-quantum},
|
| 74 |
+
year = {2025},
|
| 75 |
+
publisher = {HuggingFace},
|
| 76 |
+
url = {https://huggingface.co/Kylan12/qwen-quantum}
|
| 77 |
+
}
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
## License
|
| 81 |
+
|
| 82 |
+
This model is released under the Apache 2.0 license, consistent with the base Qwen model.
|