Text Generation
PEFT
ONNX
Safetensors
GGUF
English
qwen1.5
lora
dpo
report-generation
conversational
Instructions to use XcaliburMoon/XcaliburBiz-1.8B-report with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use XcaliburMoon/XcaliburBiz-1.8B-report with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use XcaliburMoon/XcaliburBiz-1.8B-report 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 XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M # Run inference directly in the terminal: llama cli -hf XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M # Run inference directly in the terminal: llama cli -hf XcaliburMoon/XcaliburBiz-1.8B-report: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 XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf XcaliburMoon/XcaliburBiz-1.8B-report: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 XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M
Use Docker
docker model run hf.co/XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use XcaliburMoon/XcaliburBiz-1.8B-report with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "XcaliburMoon/XcaliburBiz-1.8B-report" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "XcaliburMoon/XcaliburBiz-1.8B-report", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M
- Ollama
How to use XcaliburMoon/XcaliburBiz-1.8B-report with Ollama:
ollama run hf.co/XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use XcaliburMoon/XcaliburBiz-1.8B-report with Docker Model Runner:
docker model run hf.co/XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M
- Lemonade
How to use XcaliburMoon/XcaliburBiz-1.8B-report with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull XcaliburMoon/XcaliburBiz-1.8B-report:Q4_K_M
Run and chat with the model
lemonade run user.XcaliburBiz-1.8B-report-Q4_K_M
List all available models
lemonade list
- Atomic Chat
upload
Browse files
README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
license_link: https://www.apache.org/licenses/LICENSE-2.0
|
| 4 |
+
base_model: Qwen/Qwen1.5-1.8B-Chat
|
| 5 |
+
base_model_relation: finetune
|
| 6 |
+
library_name: peft
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
+
language:
|
| 9 |
+
- en
|
| 10 |
+
tags:
|
| 11 |
+
- text-generation
|
| 12 |
+
- qwen1.5
|
| 13 |
+
- lora
|
| 14 |
+
- dpo
|
| 15 |
+
- report-generation
|
| 16 |
+
- gguf
|
| 17 |
+
- onnx
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# xcaliburbiz
|
| 21 |
+
|
| 22 |
+
A lightweight report writer. A compact data summary goes in and a professional report comes out.
|
| 23 |
+
|
| 24 |
+
## What it is
|
| 25 |
+
|
| 26 |
+
- Base checkpoint: `Qwen/Qwen1.5-1.8B-Chat`
|
| 27 |
+
- Supervised pairs: 78
|
| 28 |
+
- Preference pairs: 77
|
| 29 |
+
- Adapter rank: 16
|
| 30 |
+
|
| 31 |
+
## License and attribution
|
| 32 |
+
|
| 33 |
+
This model is a derivative work based on Qwen1.5-1.8B-Chat by the Qwen Team, modified via Supervised Fine-Tuning and Direct Preference Optimization (DPO) by XcaliburMoon.
|
| 34 |
+
|
| 35 |
+
- License: Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0), the license of the base checkpoint, carried forward unchanged.
|
| 36 |
+
- Publisher: XcaliburMoon
|
| 37 |
+
- Retained copies: `LICENSE` and `NOTICE` in this repository.
|
| 38 |
+
- ONNX conversion reference: `Xenova/Qwen1.5-1.8B-Chat`.
|
| 39 |
+
|
| 40 |
+
### Modifications
|
| 41 |
+
|
| 42 |
+
- Supervised fine-tuning of a low rank adapter over section pairs built from the house reports.
|
| 43 |
+
- Direct preference optimization from the supervised adapter.
|
| 44 |
+
- Merging the aligned adapter into the base weights at full precision.
|
| 45 |
+
- Quantization of the merged weights into the GGUF forms and one ONNX export.
|
| 46 |
+
|
| 47 |
+
Apache License 2.0 grants no right to the trade names of the licensor beyond the use that describes the origin of the work. The name Qwen and the names of the Qwen Team belong to their owners. The name appears in this repository to state where the base checkpoint came from, and it states no endorsement of this work.
|
| 48 |
+
|
| 49 |
+
## House rules the model is trained to keep
|
| 50 |
+
|
| 51 |
+
- No em dash and no en dash.
|
| 52 |
+
- No hyphen with spaces around it used as a dash.
|
| 53 |
+
- No emoji.
|
| 54 |
+
- Every contraction written out in full.
|
| 55 |
+
- No worn prepositional phrase.
|
| 56 |
+
|
| 57 |
+
## Measured on held-out material
|
| 58 |
+
|
| 59 |
+
| Form | Style clean | Figures kept | Passed | Seconds per report |
|
| 60 |
+
|---|---|---|---|---|
|
| 61 |
+
| base | 0.5263 | 0.85 | 0.3684 | 8.24 |
|
| 62 |
+
| posttrain | 0.7368 | 0.7829 | 0.4737 | 3.91 |
|
| 63 |
+
|
| 64 |
+
## Files
|
| 65 |
+
|
| 66 |
+
- `LICENSE` 11357 bytes
|
| 67 |
+
- `NOTICE` 1298 bytes
|
| 68 |
+
- `adapter/README.md` 5198 bytes
|
| 69 |
+
- `adapter/adapter_config.json` 1101 bytes
|
| 70 |
+
- `adapter/adapter_model.safetensors` 12595704 bytes
|
| 71 |
+
- `adapter/chat_template.jinja` 328 bytes
|
| 72 |
+
- `adapter/tokenizer.json` 11418262 bytes
|
| 73 |
+
- `adapter/tokenizer_config.json` 447 bytes
|
| 74 |
+
- `adapter-sft/README.md` 5198 bytes
|
| 75 |
+
- `adapter-sft/adapter_config.json` 1101 bytes
|
| 76 |
+
- `adapter-sft/adapter_model.safetensors` 12595704 bytes
|
| 77 |
+
- `adapter-sft/chat_template.jinja` 328 bytes
|
| 78 |
+
- `adapter-sft/tokenizer.json` 11418262 bytes
|
| 79 |
+
- `adapter-sft/tokenizer_config.json` 447 bytes
|
| 80 |
+
- `merged-bf16/chat_template.jinja` 328 bytes
|
| 81 |
+
- `merged-bf16/config.json` 1287 bytes
|
| 82 |
+
- `merged-bf16/generation_config.json` 205 bytes
|
| 83 |
+
- `merged-bf16/model.safetensors` 3673690696 bytes
|
| 84 |
+
- `merged-bf16/tokenizer.json` 11418262 bytes
|
| 85 |
+
- `merged-bf16/tokenizer_config.json` 446 bytes
|
| 86 |
+
- `gguf/quantize_record.json` 430 bytes
|
| 87 |
+
- `gguf/xcaliburbiz-Q2_K.gguf` 846569664 bytes
|
| 88 |
+
- `gguf/xcaliburbiz-Q3_K_M.gguf` 1015879872 bytes
|
| 89 |
+
- `gguf/xcaliburbiz-Q4_K_M.gguf` 1217753280 bytes
|
| 90 |
+
- `gguf/xcaliburbiz-Q5_K_M.gguf` 1376776384 bytes
|
| 91 |
+
- `gguf/xcaliburbiz-Q6_K.gguf` 1579026624 bytes
|
| 92 |
+
- `gguf/xcaliburbiz-Q8_0.gguf` 1958303936 bytes
|
| 93 |
+
- `bench.json` 27480 bytes
|
| 94 |
+
- `sft_record.json` 527 bytes
|
| 95 |
+
- `dpo_record.json` 457 bytes
|
| 96 |
+
- `merge_record.json` 187 bytes
|
| 97 |
+
- `quantize_record.json` 430 bytes
|
| 98 |
+
- `data/sft.jsonl` 250442 bytes
|
| 99 |
+
- `data/dpo.jsonl` 330663 bytes
|
| 100 |
+
- `data/eval.jsonl` 51906 bytes
|
| 101 |
+
- `data/manifest.json` 1511 bytes
|
| 102 |
+
|
| 103 |
+
## Data
|
| 104 |
+
|
| 105 |
+
The pairs were built from the house reports. The supervised pairs carry a data summary in and a report section out; the preference pairs carry a good answer and a faulty one. The validation split is held out by report rather than by pair, so no measured answer was trained on.
|
| 106 |
+
|