Text Generation
Transformers
Safetensors
English
qwen3
text-generation-inference
unsloth
conversational
Instructions to use CompassioninMachineLearning/qwen-pretrained-part1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CompassioninMachineLearning/qwen-pretrained-part1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CompassioninMachineLearning/qwen-pretrained-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-pretrained-part1") model = AutoModelForCausalLM.from_pretrained("CompassioninMachineLearning/qwen-pretrained-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-pretrained-part1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CompassioninMachineLearning/qwen-pretrained-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-pretrained-part1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CompassioninMachineLearning/qwen-pretrained-part1
- SGLang
How to use CompassioninMachineLearning/qwen-pretrained-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-pretrained-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-pretrained-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-pretrained-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-pretrained-part1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use CompassioninMachineLearning/qwen-pretrained-part1 with Docker Model Runner:
docker model run hf.co/CompassioninMachineLearning/qwen-pretrained-part1
add run_manifest.json
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687{ "run_name": "qwen-pretrained-part1", "git_sha": "534143b028a9765e904b4d6d1b22205027804f19", "argv": [ "pilot/train_unsloth.py", "--data", "/workspace/anchor/qwen-pretrained/train_qwen-pretrained_replay50.jsonl", "--base-model", "Qwen/Qwen3-8B-Base", "--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-pretrained-part1", "--push-to-hub-merged", "CompassioninMachineLearning/qwen-pretrained-part1-build", "--output-dir", "/workspace/anchor/qwen-pretrained/train" ], "base_model": "Qwen/Qwen3-8B-Base", "template_source": "Qwen/Qwen3-8B-Base", "reasoning": false, "chat_template_sha256": "87a2728cb8dc9fe424d624542f6060ec05a1d285ebbec578bb078900e33396b5", "modules_to_save": [ "embed_tokens", "lm_head" ], "data_files": [ "/workspace/anchor/qwen-pretrained/train_qwen-pretrained_replay50.jsonl" ], "data_sha256": { "/workspace/anchor/qwen-pretrained/train_qwen-pretrained_replay50.jsonl": "64d5d5af76e7637f96b0c13ad80b3bf5a064ec7fa53c244f39d8722ebac3927e" }, "rows_raw": 9250, "rows_kept": 8817, "by_source": { "apigen": 4567, "efficiency": 500, "recovery": 3750 }, "train_examples": 8596, "eval_examples": 221, "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 80GB HBM3", "started_at": "2026-10-16T03:25:53Z"}run_manifest.jsonAdded+87