Text Generation
Transformers
Safetensors
Korean
English
qwen3_5
image-text-to-text
darwin
korean
bilingual
reasoning
merged-model
evolutionary-merge
conversational
Instructions to use VIDraft/Darwin-9B-KOREA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VIDraft/Darwin-9B-KOREA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="VIDraft/Darwin-9B-KOREA") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("VIDraft/Darwin-9B-KOREA") model = AutoModelForImageTextToText.from_pretrained("VIDraft/Darwin-9B-KOREA") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use VIDraft/Darwin-9B-KOREA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "VIDraft/Darwin-9B-KOREA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "VIDraft/Darwin-9B-KOREA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/VIDraft/Darwin-9B-KOREA
- SGLang
How to use VIDraft/Darwin-9B-KOREA 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 "VIDraft/Darwin-9B-KOREA" \ --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": "VIDraft/Darwin-9B-KOREA", "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 "VIDraft/Darwin-9B-KOREA" \ --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": "VIDraft/Darwin-9B-KOREA", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use VIDraft/Darwin-9B-KOREA with Docker Model Runner:
docker model run hf.co/VIDraft/Darwin-9B-KOREA
| [ | |
| { | |
| "layer": 0, | |
| "t": 0.9, | |
| "role": "golden_reasoning", | |
| "father_hn": 0.122, | |
| "mother_hn": 0.122, | |
| "f_probe": 0.001, | |
| "m_probe": 0.001 | |
| }, | |
| { | |
| "layer": 1, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.162, | |
| "mother_hn": 0.162, | |
| "f_probe": 0.002, | |
| "m_probe": 0.002 | |
| }, | |
| { | |
| "layer": 2, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.187, | |
| "mother_hn": 0.187, | |
| "f_probe": 0.006, | |
| "m_probe": 0.006 | |
| }, | |
| { | |
| "layer": 3, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.256, | |
| "mother_hn": 0.256, | |
| "f_probe": 0.006, | |
| "m_probe": 0.006 | |
| }, | |
| { | |
| "layer": 4, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.285, | |
| "mother_hn": 0.285, | |
| "f_probe": 0.007, | |
| "m_probe": 0.007 | |
| }, | |
| { | |
| "layer": 5, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.319, | |
| "mother_hn": 0.319, | |
| "f_probe": 0.009, | |
| "m_probe": 0.009 | |
| }, | |
| { | |
| "layer": 6, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.476, | |
| "mother_hn": 0.476, | |
| "f_probe": 0.017, | |
| "m_probe": 0.017 | |
| }, | |
| { | |
| "layer": 7, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.454, | |
| "mother_hn": 0.454, | |
| "f_probe": 0.023, | |
| "m_probe": 0.023 | |
| }, | |
| { | |
| "layer": 8, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.469, | |
| "mother_hn": 0.469, | |
| "f_probe": 0.026, | |
| "m_probe": 0.026 | |
| }, | |
| { | |
| "layer": 9, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.505, | |
| "mother_hn": 0.505, | |
| "f_probe": 0.027, | |
| "m_probe": 0.027 | |
| }, | |
| { | |
| "layer": 10, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.631, | |
| "mother_hn": 0.631, | |
| "f_probe": 0.025, | |
| "m_probe": 0.025 | |
| }, | |
| { | |
| "layer": 11, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.604, | |
| "mother_hn": 0.604, | |
| "f_probe": 0.032, | |
| "m_probe": 0.032 | |
| }, | |
| { | |
| "layer": 12, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.618, | |
| "mother_hn": 0.618, | |
| "f_probe": 0.034, | |
| "m_probe": 0.034 | |
| }, | |
| { | |
| "layer": 13, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.64, | |
| "mother_hn": 0.64, | |
| "f_probe": 0.035, | |
| "m_probe": 0.035 | |
| }, | |
| { | |
| "layer": 14, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.719, | |
| "mother_hn": 0.719, | |
| "f_probe": 0.031, | |
| "m_probe": 0.031 | |
| }, | |
| { | |
| "layer": 15, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.683, | |
| "mother_hn": 0.683, | |
| "f_probe": 0.04, | |
| "m_probe": 0.04 | |
| }, | |
| { | |
| "layer": 16, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.696, | |
| "mother_hn": 0.696, | |
| "f_probe": 0.047, | |
| "m_probe": 0.047 | |
| }, | |
| { | |
| "layer": 17, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.73, | |
| "mother_hn": 0.73, | |
| "f_probe": 0.054, | |
| "m_probe": 0.054 | |
| }, | |
| { | |
| "layer": 18, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.926, | |
| "mother_hn": 0.926, | |
| "f_probe": 0.059, | |
| "m_probe": 0.059 | |
| }, | |
| { | |
| "layer": 19, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 0.899, | |
| "mother_hn": 0.899, | |
| "f_probe": 0.097, | |
| "m_probe": 0.097 | |
| }, | |
| { | |
| "layer": 20, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 1.031, | |
| "mother_hn": 1.031, | |
| "f_probe": 0.11, | |
| "m_probe": 0.11 | |
| }, | |
| { | |
| "layer": 21, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 1.184, | |
| "mother_hn": 1.184, | |
| "f_probe": 0.121, | |
| "m_probe": 0.121 | |
| }, | |
| { | |
| "layer": 22, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 1.52, | |
| "mother_hn": 1.52, | |
| "f_probe": 0.095, | |
| "m_probe": 0.095 | |
| }, | |
| { | |
| "layer": 23, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 1.558, | |
| "mother_hn": 1.558, | |
| "f_probe": 0.118, | |
| "m_probe": 0.118 | |
| }, | |
| { | |
| "layer": 24, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 1.746, | |
| "mother_hn": 1.746, | |
| "f_probe": 0.123, | |
| "m_probe": 0.123 | |
| }, | |
| { | |
| "layer": 25, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 1.925, | |
| "mother_hn": 1.925, | |
| "f_probe": 0.104, | |
| "m_probe": 0.104 | |
| }, | |
| { | |
| "layer": 26, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 2.641, | |
| "mother_hn": 2.641, | |
| "f_probe": 0.054, | |
| "m_probe": 0.054 | |
| }, | |
| { | |
| "layer": 27, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 2.24, | |
| "mother_hn": 2.24, | |
| "f_probe": 0.088, | |
| "m_probe": 0.088 | |
| }, | |
| { | |
| "layer": 28, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 2.56, | |
| "mother_hn": 2.56, | |
| "f_probe": 0.081, | |
| "m_probe": 0.081 | |
| }, | |
| { | |
| "layer": 29, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 2.776, | |
| "mother_hn": 2.776, | |
| "f_probe": 0.085, | |
| "m_probe": 0.085 | |
| }, | |
| { | |
| "layer": 30, | |
| "t": 0.5, | |
| "role": "normal", | |
| "father_hn": 3.16, | |
| "mother_hn": 3.16, | |
| "f_probe": 0.084, | |
| "m_probe": 0.084 | |
| }, | |
| { | |
| "layer": 31, | |
| "t": 0.53, | |
| "role": "output_router", | |
| "father_hn": 3.872, | |
| "mother_hn": 3.872, | |
| "f_probe": 0.145, | |
| "m_probe": 0.145 | |
| } | |
| ] |