Image-Text-to-Text
Transformers
Safetensors
Korean
English
qwen3_5
korean
reasoning
darwin
evolutionary-merge
conversational
Instructions to use Warecube/Warecube-KO-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Warecube/Warecube-KO-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Warecube/Warecube-KO-27B") 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("Warecube/Warecube-KO-27B") model = AutoModelForImageTextToText.from_pretrained("Warecube/Warecube-KO-27B") 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 Warecube/Warecube-KO-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Warecube/Warecube-KO-27B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Warecube/Warecube-KO-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Warecube/Warecube-KO-27B
- SGLang
How to use Warecube/Warecube-KO-27B 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 "Warecube/Warecube-KO-27B" \ --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": "Warecube/Warecube-KO-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "Warecube/Warecube-KO-27B" \ --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": "Warecube/Warecube-KO-27B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Warecube/Warecube-KO-27B with Docker Model Runner:
docker model run hf.co/Warecube/Warecube-KO-27B
| license: apache-2.0 | |
| language: | |
| - ko | |
| - en | |
| library_name: transformers | |
| tags: | |
| - korean | |
| - reasoning | |
| - darwin | |
| - evolutionary-merge | |
| base_model: | |
| - FINAL-Bench/Darwin-27B-Opus | |
| - NewenAI/QuettaLLMs-27B-Koreasoner-V3 | |
| # Warecube-KO-27B | |
| νκ΅μ΄ reasoning λͺ¨λΈ β Darwin μ§νμ λ¨Έμ§ κΈ°λ°. | |
| --- | |
| ## 𧬠Darwin μ§ν 컨μ | |
| λ³Έ λͺ¨λΈμ **Darwin V7 μ§νμ λͺ¨λΈ λ¨Έμ§(Evolutionary Model Merge)** | |
| ν¨λ¬λ€μμΌλ‘ μ μλμμ΅λλ€. | |
| ``` | |
| μμ° μ§ν Darwin λ¨Έμ§ | |
| βββββββββ βββββββββββ | |
| μ μ μ κ΅μ°¨ (crossover) β κ°μ€μΉ λͺ¨λλ³ λΉμ¨ κ²°ν© | |
| μμ° μ ν (selection) β μ ν©λ νκ° ν μ΅μ νμ μ λ³ | |
| μΈλ μ§ν (generations) β λ€μΈλ λ¨Έμ§Β·μ μ λ°λ³΅ | |
| μ μ μμ‘΄ β K-AI λλ©μΈ μ°μ μμλ§ λ³΄μ‘΄ | |
| ``` | |
| λΆλͺ¨μ λ₯λ ₯μ΄ μμ λͺ¨λΈλ‘ **μ μ μ μΌλ‘ κ³μΉ**λλ©°, | |
| μΈλλ₯Ό κ±°μ³ νκ΅μ΄Β·μΆλ‘ Β·λ¬Έν μ§λ₯μ΄ μ§νν©λλ€. | |
| --- | |
| ## ποΈ κ°λ¬Έ κ³λ³΄ | |
| ``` | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β μ¦μ‘°λΆ (Great-Grandfather) β | |
| β Qwen-3.5-27B β | |
| β - λ©ν°λͺ¨λ¬ 28B λ² μ΄μ€ β | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β | |
| βΌ Darwin V7 μ§ν λ¨Έμ§ | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β μ‘°λΆ (Grandfather) β | |
| β FINAL-Bench/Darwin-27B-Opus β | |
| β - Darwin V7 μ§νμ μ μ β | |
| β - GPQA 88.4% reasoning β | |
| β - <think> νΈλ μ΄μ€ ν¨ν΄ β | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β | |
| βΌ νκ΅μ΄ νΉν μ§ν | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β μλΉ (Father) β | |
| β Darwin family Korean μ§κ³ β | |
| β β | |
| β - Darwin-27B-Opusμ νκ΅μ΄ νΉν νμ β | |
| β - reasoning DNA 보쑴 β | |
| β - <think> ν¨ν΄ μ μ§ β | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β | |
| ΓΓ λ€μ κ΅λ°° ΓΓ | |
| β | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β μλ§ (Mother) β | |
| β NewenAI/QuettaLLMs-27B-Koreasoner-V3 β | |
| β β | |
| β - νκ΅μ΄ SOTA λͺ¨λΈ β | |
| β - K-AI Leaderboard 1μ (avg 0.560) β | |
| β - νκ΅μ΄ λλ©μΈ SFT μ μ β | |
| β - Apache 2.0 β | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β | |
| βΌ Darwin μ§νμ λ¨Έμ§ + νκ΅μ΄ μ μ | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| β μμ (Child) β λ³Έ λͺ¨λΈ β | |
| β Warecube/Warecube-KO-27B β | |
| β β | |
| β β¦ μλΉ μ reasoning DNA κ³μΉ β | |
| β β¦ μλ§μ νκ΅μ΄ ννΒ·μ§μ κ³μΉ β | |
| β β¦ <think> μΆλ‘ νΈλ μ΄μ€ 보쑴 β | |
| β β¦ K-AI λλ©μΈ μ ν©λ μ§ν β | |
| ββββββββββββββββββββββββββββββββββββββββββββ | |
| ``` | |
| --- | |
| ## π μ§ν λ¨κ³ | |
| | Stage | κ°λ΅ | | |
| |:---|:---| | |
| | **1. κ΅λ°° (Crossover)** | μΉκ°Β·μΈκ° κ°μ€μΉλ₯Ό λͺ¨λλ³ λΉμ¨λ‘ μ§ν λ¨Έμ§ | | |
| | **2. μ ν (Selection)** | νκ΅μ΄ λλ©μΈ μ ν©λ νκ°λ‘ μ°μ νμ μ λ³ | | |
| | **3. μ μ (Refinement)** | νκ΅μ΄ instruction λ°μ΄ν°λ‘ μΆκ° μ§ν | | |
| | **4. μ μ (Adaptation)** | K-AI Leaderboard Docker νΈν νμμΌλ‘ μ λΉ | | |
| --- | |
| ## π― μ¬μ©λ² | |
| ```python | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| import torch | |
| model_id = "Warecube/Warecube-KO-27B" | |
| tokenizer = AutoTokenizer.from_pretrained( | |
| model_id, trust_remote_code=True | |
| ) | |
| model = AutoModelForCausalLM.from_pretrained( | |
| model_id, | |
| torch_dtype=torch.bfloat16, | |
| device_map="auto", | |
| trust_remote_code=True, | |
| ) | |
| prompt = "νκ΅μ μΆμμ λν΄ μ€λͺ ν΄μ£ΌμΈμ." | |
| messages = [{"role": "user", "content": prompt}] | |
| inputs = tokenizer.apply_chat_template( | |
| messages, return_tensors="pt", add_generation_prompt=True | |
| ) | |
| out = model.generate( | |
| inputs.to(model.device), | |
| max_new_tokens=512, | |
| do_sample=False, | |
| ) | |
| print(tokenizer.decode(out[0], skip_special_tokens=False)) | |
| ``` | |
| --- | |
| ## π οΈ μ¬μ | |
| - νλΌλ―Έν°: 27B (text) | |
| - μμν: bf16 | |
| - 컨ν μ€νΈ: 8K (νμ₯ κ°λ₯) | |
| - μΈμ΄: νκ΅μ΄ + μμ΄ | |
| - μΆλ‘ : `<think>` reasoning trace | |
| - License: Apache 2.0 | |
| --- | |
| ## π νκ° | |
| νκ΅μ΄ κ³΅κ° 10 λ°μ΄ν°μ , 100λ¬Έμ Γ 1 seed. | |
| | Dataset | Score | | |
| |:---|---:| | |
| | CLIcK | **87%** | | |
| | KMMLU History | **50%** | | |
| | KMMLU Law | **29%** | | |
| | KMMLU Health | 78% | | |
| | HAERAE General | 58% | | |
| | HAERAE History | 86% | | |
| | HAERAE Linguistics | 89% | | |
| | KoBEST Hellaswag | 89% | | |
| | KoBEST COPA | **100%** | | |
| | KoBEST BoolQ | 97% | | |
| | **Macro Avg** | **76.3%** | | |
| --- | |
| ## π€ μΆμ² | |
| - μ‘°λΆ: [FINAL-Bench/Darwin-27B-Opus](https://huggingface.co/FINAL-Bench/Darwin-27B-Opus) | |
| - μλ§: [NewenAI/QuettaLLMs-27B-Koreasoner-V3](https://huggingface.co/NewenAI/QuettaLLMs-27B-Koreasoner-V3) | |
| - κ°λ¬Έ: Darwin family (Darwin V7 μ§νμ λ¨Έμ§ μ리μ¦) | |