Instructions to use CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables") 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("CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables") model = AutoModelForCausalLM.from_pretrained("CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables", 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 CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables
- SGLang
How to use CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables 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 "CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables" \ --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": "CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables", "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 "CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables" \ --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": "CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables with Docker Model Runner:
docker model run hf.co/CodeAtCMU/Qwen3-0.6B-Base_full_sft_code_data_120K_replace_variables
Upload Qwen3ForCausalLM
Browse filesFiles changed (3)
- config.jsonAdded+30
- generation_config.jsonAdded+6
- model.safetensorsAdded+3
123456789101112131415161718192021222324252627282930{ "architectures": [ "Qwen3ForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "bos_token_id": 151643, "eos_token_id": 151643, "head_dim": 128, "hidden_act": "silu", "hidden_size": 1024, "initializer_range": 0.02, "intermediate_size": 3072, "max_position_embeddings": 32768, "max_window_layers": 28, "model_type": "qwen3", "num_attention_heads": 16, "num_hidden_layers": 28, "num_key_value_heads": 8, "rms_norm_eps": 1e-06, "rope_scaling": null, "rope_theta": 1000000, "sliding_window": null, "tie_word_embeddings": true, "torch_dtype": "bfloat16", "transformers_version": "4.52.1", "use_cache": false, "use_sliding_window": false, "vocab_size": 151936}123456{ "bos_token_id": 151643, "eos_token_id": 151643, "max_new_tokens": 2048, "transformers_version": "4.52.1"}123version https://git-lfs.github.com/spec/v1oid sha256:41d24f8bd56d42d2b50816c197eeeeb1455d6d7d79f07f2bacd24af66bb50683size 1192135096config.jsonAdded+30
generation_config.jsonAdded+6
model.safetensorsAdded+3