Text Generation
Transformers
Safetensors
English
qwen3
text-generation-inference
unsloth
conversational
Run this model with HF Jobs
Run CompassioninMachineLearning/qwen-compassion-part1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/CompassioninMachineLearning/qwen-compassion-part1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/CompassioninMachineLearning/qwen-compassion-part1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/CompassioninMachineLearning/qwen-compassion-part1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/CompassioninMachineLearning/qwen-compassion-part1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
add run_manifest.json
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586{ "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"}run_manifest.jsonAdded+86