Text Generation
Transformers
Safetensors
English
qwen3
text-generation-inference
unsloth
conversational
Instructions to use CompassioninMachineLearning/qwen-compassion-part1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CompassioninMachineLearning/qwen-compassion-part1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CompassioninMachineLearning/qwen-compassion-part1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CompassioninMachineLearning/qwen-compassion-part1") model = AutoModelForCausalLM.from_pretrained("CompassioninMachineLearning/qwen-compassion-part1", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CompassioninMachineLearning/qwen-compassion-part1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CompassioninMachineLearning/qwen-compassion-part1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CompassioninMachineLearning/qwen-compassion-part1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CompassioninMachineLearning/qwen-compassion-part1
- SGLang
How to use CompassioninMachineLearning/qwen-compassion-part1 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "CompassioninMachineLearning/qwen-compassion-part1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CompassioninMachineLearning/qwen-compassion-part1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "CompassioninMachineLearning/qwen-compassion-part1" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CompassioninMachineLearning/qwen-compassion-part1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use CompassioninMachineLearning/qwen-compassion-part1 with Docker Model Runner:
docker model run hf.co/CompassioninMachineLearning/qwen-compassion-part1
Download run_manifest.json from CompassioninMachineLearning/qwen-compassion-part1: direct link, hf CLI and curl.
- Browser
- Download file 2.26 kB
-
https://huggingface.co/CompassioninMachineLearning/qwen-compassion-part1/resolve/main/run_manifest.json
- Command line
-
hf download hf://CompassioninMachineLearning/qwen-compassion-part1/run_manifest.json
-
curl -L -o run_manifest.json https://huggingface.co/CompassioninMachineLearning/qwen-compassion-part1/resolve/main/run_manifest.json
2.26 kB
| { | |
| "run_name": "qwen-compassion-part1", | |
| "git_sha": "6950fbbc6f29902d7fc5b26c1aef8d053966e9a3", | |
| "argv": [ | |
| "pilot/train_unsloth.py", | |
| "--data", | |
| "/workspace/anchor/qwen-compassion/train_qwen-compassion_replay50.jsonl", | |
| "--base-model", | |
| "CompassioninMachineLearning/Qwen3-8b-compassion-cleaned-10k-CPT-best-step750", | |
| "--no-4bit", | |
| "--lora-r", | |
| "64", | |
| "--lora-alpha", | |
| "128", | |
| "--seed", | |
| "7", | |
| "--epochs", | |
| "1", | |
| "--eval-steps", | |
| "50", | |
| "--early-stopping-patience", | |
| "2", | |
| "--snapshot-frac", | |
| "0", | |
| "--replay-chat", | |
| "--replay-token-frac", | |
| "0.25", | |
| "--run-name", | |
| "qwen-compassion-part1", | |
| "--push-to-hub-merged", | |
| "CompassioninMachineLearning/qwen-compassion-part1-build", | |
| "--output-dir", | |
| "/workspace/anchor/qwen-compassion/train" | |
| ], | |
| "base_model": "CompassioninMachineLearning/Qwen3-8b-compassion-cleaned-10k-CPT-best-step750", | |
| "template_source": "CompassioninMachineLearning/Qwen3-8b-compassion-cleaned-10k-CPT-best-step750", | |
| "modules_to_save": [ | |
| "embed_tokens", | |
| "lm_head" | |
| ], | |
| "data_files": [ | |
| "/workspace/anchor/qwen-compassion/train_qwen-compassion_replay50.jsonl" | |
| ], | |
| "data_sha256": { | |
| "/workspace/anchor/qwen-compassion/train_qwen-compassion_replay50.jsonl": "1f22b1da2039471bb1932e866f1a1138a08f3e8c1eee8e94dfb2dc19a3b9b2e8" | |
| }, | |
| "rows_raw": 18500, | |
| "rows_kept": 10076, | |
| "by_source": { | |
| "replay:compassion_12185_cleaned": 1259, | |
| "recovery": 3750, | |
| "apigen": 4567, | |
| "efficiency": 500 | |
| }, | |
| "train_examples": 9824, | |
| "eval_examples": 252, | |
| "hyperparams": { | |
| "lora_r": 64, | |
| "lora_alpha": 128, | |
| "lora_dropout": 0.05, | |
| "lr_adapters": 0.0002, | |
| "lr_embeddings": 2e-05, | |
| "epochs": 1.0, | |
| "max_steps": -1, | |
| "max_seq_len": 8192, | |
| "effective_batch": 16, | |
| "per_device_batch": 2, | |
| "grad_accum": 8, | |
| "warmup_ratio": 0.05, | |
| "schedule": "cosine", | |
| "seed": 7, | |
| "snapshot_frac": 0.0 | |
| }, | |
| "versions": { | |
| "torch": "2.11.0+cu128", | |
| "transformers": "4.57.6", | |
| "unsloth": "2026.9.2", | |
| "trl": "0.22.2", | |
| "datasets": "5.0.1", | |
| "peft": "0.20.0", | |
| "accelerate": "1.14.0", | |
| "bitsandbytes": "0.50.2" | |
| }, | |
| "gpu": "NVIDIA H100 NVL", | |
| "started_at": "2026-10-11T23:26:44Z" | |
| } |