Instructions to use yunjae-won/checkpoint-200 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yunjae-won/checkpoint-200 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="yunjae-won/checkpoint-200") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("yunjae-won/checkpoint-200") model = AutoModelForCausalLM.from_pretrained("yunjae-won/checkpoint-200") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use yunjae-won/checkpoint-200 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "yunjae-won/checkpoint-200" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "yunjae-won/checkpoint-200", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/yunjae-won/checkpoint-200
- SGLang
How to use yunjae-won/checkpoint-200 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 "yunjae-won/checkpoint-200" \ --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": "yunjae-won/checkpoint-200", "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 "yunjae-won/checkpoint-200" \ --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": "yunjae-won/checkpoint-200", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use yunjae-won/checkpoint-200 with Docker Model Runner:
docker model run hf.co/yunjae-won/checkpoint-200
Upload Qwen3ForCausalLM
Browse files- config.json +13 -5
- model-00001-of-00002.safetensors +1 -1
- model-00002-of-00002.safetensors +1 -1
config.json
CHANGED
|
@@ -9,9 +9,9 @@
|
|
| 9 |
"eos_token_id": 151645,
|
| 10 |
"head_dim": 128,
|
| 11 |
"hidden_act": "silu",
|
| 12 |
-
"hidden_size":
|
| 13 |
"initializer_range": 0.02,
|
| 14 |
-
"intermediate_size":
|
| 15 |
"layer_types": [
|
| 16 |
"full_attention",
|
| 17 |
"full_attention",
|
|
@@ -40,13 +40,21 @@
|
|
| 40 |
"full_attention",
|
| 41 |
"full_attention",
|
| 42 |
"full_attention",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
"full_attention"
|
| 44 |
],
|
| 45 |
"max_position_embeddings": 40960,
|
| 46 |
-
"max_window_layers":
|
| 47 |
"model_type": "qwen3",
|
| 48 |
-
"num_attention_heads":
|
| 49 |
-
"num_hidden_layers":
|
| 50 |
"num_key_value_heads": 8,
|
| 51 |
"rms_norm_eps": 1e-06,
|
| 52 |
"rope_scaling": null,
|
|
|
|
| 9 |
"eos_token_id": 151645,
|
| 10 |
"head_dim": 128,
|
| 11 |
"hidden_act": "silu",
|
| 12 |
+
"hidden_size": 2560,
|
| 13 |
"initializer_range": 0.02,
|
| 14 |
+
"intermediate_size": 9728,
|
| 15 |
"layer_types": [
|
| 16 |
"full_attention",
|
| 17 |
"full_attention",
|
|
|
|
| 40 |
"full_attention",
|
| 41 |
"full_attention",
|
| 42 |
"full_attention",
|
| 43 |
+
"full_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"full_attention",
|
| 47 |
+
"full_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"full_attention",
|
| 50 |
+
"full_attention",
|
| 51 |
"full_attention"
|
| 52 |
],
|
| 53 |
"max_position_embeddings": 40960,
|
| 54 |
+
"max_window_layers": 36,
|
| 55 |
"model_type": "qwen3",
|
| 56 |
+
"num_attention_heads": 32,
|
| 57 |
+
"num_hidden_layers": 36,
|
| 58 |
"num_key_value_heads": 8,
|
| 59 |
"rms_norm_eps": 1e-06,
|
| 60 |
"rope_scaling": null,
|
model-00001-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4967215360
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0aae6c11ec85a8a15d96471cea7eecdcd0cc97d47f18d97f570eb401380d9657
|
| 3 |
size 4967215360
|
model-00002-of-00002.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3077766632
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b11ba55ddd6af9a647bf89e9dbf27c81a421548f21ebc5e9f599c7a1e0207f8
|
| 3 |
size 3077766632
|