Text Generation
PEFT
Safetensors
GGUF
llama.cpp
lora
text2shell
shell
linux
cli
qwen2.5-coder
conversational
Instructions to use arxhr007/lxask with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use arxhr007/lxask with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use arxhr007/lxask 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 arxhr007/lxask:Q4_K_M # Run inference directly in the terminal: llama cli -hf arxhr007/lxask:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf arxhr007/lxask:Q4_K_M # Run inference directly in the terminal: llama cli -hf arxhr007/lxask:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf arxhr007/lxask:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf arxhr007/lxask:Q4_K_M
Use Docker
docker model run hf.co/arxhr007/lxask:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use arxhr007/lxask with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "arxhr007/lxask" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "arxhr007/lxask", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/arxhr007/lxask:Q4_K_M
- Ollama
How to use arxhr007/lxask with Ollama:
ollama run hf.co/arxhr007/lxask:Q4_K_M
- Unsloth Desktop
- Pi
How to use arxhr007/lxask with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf arxhr007/lxask: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:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "arxhr007/lxask:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use arxhr007/lxask with Docker Model Runner:
docker model run hf.co/arxhr007/lxask:Q4_K_M
- Lemonade
How to use arxhr007/lxask with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull arxhr007/lxask:Q4_K_M
Run and chat with the model
lemonade run user.lxask-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use arxhr007/lxask with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf arxhr007/lxask: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:9931/v1 hermes config set model.default arxhr007/lxask:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use arxhr007/lxask with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf arxhr007/lxask: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:9931/v1 \ --custom-model-id "arxhr007/lxask: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"
Aaron Thomas commited on
Model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: Qwen/Qwen2.5-Coder-1.5B-Instruct
|
| 4 |
+
library_name: gguf
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- linux
|
| 10 |
+
- bash
|
| 11 |
+
- shell
|
| 12 |
+
- command-line
|
| 13 |
+
- gguf
|
| 14 |
+
- llama.cpp
|
| 15 |
+
- lora
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# lxask: Linux commands from plain English, offline
|
| 19 |
+
|
| 20 |
+
`lxask` turns a plain-English request ("find files bigger than 100 MB in /var, newest first")
|
| 21 |
+
into a Linux command, with each part explained, and checks it against the man pages and
|
| 22 |
+
tldr before showing it. It runs on your machine: no network, account or API key after
|
| 23 |
+
install. The program is a single Rust binary; this repository holds the model files it uses.
|
| 24 |
+
|
| 25 |
+
- Code, install script and docs: https://github.com/arxhr007/lxask
|
| 26 |
+
- Docs site: https://arxhr007.github.io/lxask/
|
| 27 |
+
- Version of these files: lxask v0.11.0
|
| 28 |
+
|
| 29 |
+
## Files
|
| 30 |
+
|
| 31 |
+
| file | size | what it is |
|
| 32 |
+
|---|---|---|
|
| 33 |
+
| `lxask-round4-Q4_K_M.gguf` | 986 MB | the chat model: Qwen2.5-Coder-1.5B-Instruct, fine-tuned, 4-bit (Q4_K_M) |
|
| 34 |
+
| `restrict-round4.gguf` | 37 MB | LoRA adapter, switched on only for requests that rule a program out ("without lsof") or mention a proxy |
|
| 35 |
+
|
| 36 |
+
sha256:
|
| 37 |
+
|
| 38 |
+
```
|
| 39 |
+
023ee206403c7fc96a9be13e1aec761dd798d73c6d2f876a6c09c392dbf9cbc5 lxask-round4-Q4_K_M.gguf
|
| 40 |
+
e77b3d86aab83aedf1a464993599c4b503d59d80b3fa7147b420221c214c8549 restrict-round4.gguf
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
These are not a standalone chat model. The accuracy comes from lxask's pipeline around the
|
| 44 |
+
model: retrieval from man pages and tldr, a validator that checks every program and option,
|
| 45 |
+
retries, and fixed rules. Used raw, the model alone is weaker (see the benchmark below).
|
| 46 |
+
|
| 47 |
+
## Use
|
| 48 |
+
|
| 49 |
+
Install lxask (it downloads these files):
|
| 50 |
+
|
| 51 |
+
```
|
| 52 |
+
curl -fsSLO https://github.com/arxhr007/lxask/releases/latest/download/install.sh
|
| 53 |
+
sh install.sh
|
| 54 |
+
lxask "show the 5 biggest files in this folder"
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
The model alone runs in llama.cpp (`llama-cli -m lxask-round4-Q4_K_M.gguf`), but without
|
| 58 |
+
the pipeline you lose the checks.
|
| 59 |
+
|
| 60 |
+
## Training
|
| 61 |
+
|
| 62 |
+
Base: Qwen2.5-Coder-1.5B-Instruct (Apache 2.0). Two stages, then a small add-on:
|
| 63 |
+
|
| 64 |
+
1. Supervised fine-tuning (LoRA, about 39,000 examples, one epoch).
|
| 65 |
+
2. Reinforcement learning (GRPO) on about 1,550 file and text tasks, rewarded when the
|
| 66 |
+
command actually ran in a sandbox and did the job. Held-out execution success rose from
|
| 67 |
+
52% to 78% (raw, before the pipeline's checks).
|
| 68 |
+
3. The 37 MB adapter, trained on requests that rule out a program and on proxy settings.
|
| 69 |
+
|
| 70 |
+
Data: tldr-pages (CC BY 4.0), NL2Bash (GPL-3.0, with macOS-only commands removed), and
|
| 71 |
+
questions and answers written by language models, every command checked by a validator and
|
| 72 |
+
the answers reviewed by a stronger model. The model-written data is not published. Every
|
| 73 |
+
training round, including the ones that were dropped:
|
| 74 |
+
https://github.com/arxhr007/lxask/blob/main/docs/results.md
|
| 75 |
+
|
| 76 |
+
## Limits
|
| 77 |
+
|
| 78 |
+
- 1.5B parameters. It misses by a detail (a flag, a field number) more often than a large
|
| 79 |
+
model would, which is why every answer is explained and anything unconfirmed is flagged.
|
| 80 |
+
- English requests; Linux only (macOS and BSD flags differ).
|
| 81 |
+
- It never runs commands for you. Read a command before you run it.
|
| 82 |
+
- Licence lineage: Qwen2.5-Coder (Apache 2.0); tldr-pages CC BY 4.0; NL2Bash GPL-3.0.
|
| 83 |
+
Details: https://github.com/arxhr007/lxask/blob/main/NOTICE
|
| 84 |
+
|
| 85 |
+
## Benchmark
|
| 86 |
+
|
| 87 |
+
InterCode-ALFA results: to be added.
|