Text Generation
Transformers
Safetensors
GGUF
Korean
English
llama
3b
korean
from-scratch
orpo
instruction-tuned
preference-aligned
fp8
b200
Eval Results (legacy)
text-generation-inference
Instructions to use pathcosmos/frankenstallm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use pathcosmos/frankenstallm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="pathcosmos/frankenstallm")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("pathcosmos/frankenstallm") model = AutoModelForCausalLM.from_pretrained("pathcosmos/frankenstallm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use pathcosmos/frankenstallm with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf pathcosmos/frankenstallm:Q4_K_M # Run inference directly in the terminal: llama cli -hf pathcosmos/frankenstallm:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf pathcosmos/frankenstallm:Q4_K_M # Run inference directly in the terminal: llama cli -hf pathcosmos/frankenstallm:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf pathcosmos/frankenstallm:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf pathcosmos/frankenstallm:Q4_K_M
Use Docker
docker model run hf.co/pathcosmos/frankenstallm:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use pathcosmos/frankenstallm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "pathcosmos/frankenstallm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pathcosmos/frankenstallm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/pathcosmos/frankenstallm:Q4_K_M
- SGLang
How to use pathcosmos/frankenstallm 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 "pathcosmos/frankenstallm" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pathcosmos/frankenstallm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "pathcosmos/frankenstallm" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "pathcosmos/frankenstallm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use pathcosmos/frankenstallm with Ollama:
ollama run hf.co/pathcosmos/frankenstallm:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use pathcosmos/frankenstallm with Docker Model Runner:
docker model run hf.co/pathcosmos/frankenstallm:Q4_K_M
- Lemonade
How to use pathcosmos/frankenstallm with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull pathcosmos/frankenstallm:Q4_K_M
Run and chat with the model
lemonade run user.frankenstallm-Q4_K_M
List all available models
lemonade list
- Atomic Chat
|
Download EVALUATION_STANDARD.md from pathcosmos/frankenstallm: direct link, hf CLI and curl.
- Browser
- Download file 3.95 kB
-
https://huggingface.co/pathcosmos/frankenstallm/resolve/main/EVALUATION_STANDARD.md
- Command line
-
hf download hf://pathcosmos/frankenstallm/EVALUATION_STANDARD.md
-
curl -L -o EVALUATION_STANDARD.md https://huggingface.co/pathcosmos/frankenstallm/resolve/main/EVALUATION_STANDARD.md
3.95 kB
| # frankenstallm ํ์ค ๋ฒค์น ํ๊ฐยท์คํ ์ต์ ํ (ko-llm-bench-suite) | |
| ## ๊ฐ์ฅ ์ค์ํ ๋ฐ๊ฒฌ: ํ ํฌ๋์ด์ ๋ถ์ผ์น | |
| - ํ์ต ํ ํฌ๋์ด์ (korean_sp Unigram 64,000, SHA f413abc0โฆ)์ ์ด ์ ์ฅ์์ `tokenizer.json`(byte-fallback 64,256)์ ๋ค๋ฅด๋ค. ๋ฐฐํฌ๋ณธ์ ๊ฐํยท์ฌ์ ๋ฐ ๋ฌธ์๋ฅผ **ํ์ต๋์ง ์์ byte ํ ํฐ**(์๋ฒ ๋ฉ ๋ ธ๋ฆ 0.855, ์ผ๋ฐ ํ ํฐ 2.33)์ผ๋ก ๋ฐ๊พผ๋ค. ํ์ต์ ๊ฐํ์ `<unk>`๋ก ํ๋ค. | |
| - `gguf/*-v2-*.gguf`๋ llama.cpp ํ ํฐํ๊ฐ ํ์ต๊ณผ ๋ค๋ฅด๋ค(BOS ์ถ๊ฐ, ๊ฐํ byte, ๋ถ์ ์๊ณ ๋ฆฌ์ฆ). ๋ํ 29๊ฐ ์ค 0๊ฐ๊ฐ ํ์ต ํ ํฐ๊ณผ ์ผ์นํ๋ค. | |
| - ํด๊ฒฐ: `train-tokenizer/gguf_retokenize.py`๋ก **ํ ํฌ๋์ด์ ๋ฉํ๋ฐ์ดํฐ๋ง** ํ์ต์ฉ์ผ๋ก ๊ต์ฒดํ GGUF๋ฅผ ๋ง๋ ๋ค(ํ ์ 254๊ฐ ๋ฐ์ดํธ ๋์ผ). ์ด GGUF์ `llamacpp_text()` ๊ท์น์ผ๋ก ๋ฌธ์์ด์ ๋ฃ์ผ๋ฉด ํ ์คํธ 24/24, ๋ํ 29/29 ํ ํฐ ์ผ์น, Ollama(`Modelfile.v2-train-tokenizer`)๋ 29/29 ์ผ์น(`train-tokenizer/token_conformance.json`). | |
| - ์ ๋ ํ๊ฐ๋ ๋ชจ๋ ํ์ต ํ ํฌ๋์ด์ ๋ก ํ๋ค. ๋ฐฐํฌ ํ ํฌ๋์ด์ ์คํ(๊ธฐ์กด ๋ฐฉ์)์ ๋ณ๋ ๊ธฐ์ค์ ์ผ๋ก ๋ณด์กดํ๋ค. | |
| ## ํต์ผ ๋น๊ต (ํ๋กํ ์ฝ U, 34๊ฐ ๋ชจ๋ธ) | |
| | ์์ญ | frankenstallm | | |
| |---|---| | |
| | **์ข ํฉ (9์์ญ ๊ฐ์ ๊ฐ์ค์น)** | 0.152 (33/34์) | | |
| | ์ง์ | 0.090 | | |
| | ์ ๋ฌธยท์๋ฃ | 0.052 | | |
| | ์ฌ์ค์ฑยทํธํฅ | 0.037 | | |
| | ์ํ | 0.016 | | |
| | ์ฝ๋ | 0.000 | | |
| | ์ง์ ์ํ | 0.120 | | |
| | ๋ํยท์์ฑ ํ์ง | 0.100 | | |
| | ๋คํด | 0.119 | | |
| | ์ธ์ด ๋ชจ๋ธ๋ง | 0.832 | | |
| - ์ธ์ด ๋ชจ๋ธ๋ง ์์ญ๋ง ์๋ฏธ ์๋ ๊ฐ์ด๋ค(ํ๊ตญ์ด bpb 0.795). ์ง์ยท์ํยท์ฝ๋๋ ๋ฌด์์์ ๊ฐ๊น๊ณ , ๋คํด์์ ์ ๋ต์ ๋ณต์ฌํ๋ ๋น์จ์ด ๋๋ค(dev ํ์ผ๋ฟ 20%). | |
| ## ์์ฑ ์ค์ ํ์ (dev์์ ์ธก์ ์ ๋ฑ๋กํ ๊ท์น) | |
| - ์ ์ฝ: ๋ฃจํ โค2%, ์ธ์ด ์ดํ โค2%, ํ ํ๋ฆฟ ๋์ถ โค0.5%, ์๋ฆผ โค5%๋ฅผ ๋ง์กฑํ๋ ํ๋ณด ์ค ํ์ง ์ต๊ณ . | |
| - **greedy๋ ๋ฐ๋ณต ๋ฃจํ๊ฐ ์ฌํ๋ค**(dev ๋ฃจํ 9.1%, ์ค๋ณต 3-gram 20%). ์ ํ: `repetition_penalty=1.1`, ๊ฐํ(`<unk>`) ์ ๊ฑฐ ์ ์ฑ . ์ด๋ ๋ฃจํ 1.2%. ์นด๋์ 1.2๋ ๋ฃจํ๋ฅผ ๋ ์ค์ด์ง๋ง dev ํ์ง ์์์์๋ 1.1์ด ์์ฐ๋ค. | |
| - ํ๊ณ: ์ค์ ์ผ๋ก ํ์ง์ด ์ค๋ฅด์ง๋ ์๋๋ค(dev ํ์ง 0.076 ์์ค). ๋ฐ๋ณตยท๋ณต์ฌ ๊ฐ์ ์ค๋์์ ์ค์ด๋ ํจ๊ณผ๋ค. | |
| - korean_sp ์ถ๋ ฅ์ `<unk>`๋ ๊ฐํ์ด๋ค. ๋์ฝ๋ฉ์ `<unk>`๋ฅผ ์ ์งํ ์ฑ ํ ๋ฒ์ ํด์ผ ์ค๋จธ๋ฆฌ ๊ณต๋ฐฑ์ด ๋ณด์กด๋๋ค(์กฐ๊ฐ๋ณ ๋์ฝ๋ฉ์ ๋ค์ฌ์ฐ๊ธฐ๊ฐ 1์นธ์ฉ ์ค์๋ค). | |
| ## ์ฑ๋ฅ (vLLM BF16, ์ถ๋ ฅ 256ํ ํฐ ๊ณ ์ ) | |
| | ๋ชจ๋ธ | ์์ง | ๋์ 1 ์ถ๋ ฅ tok/s | ๋์ 1 TTFT p50 ms | ๋์ 64 ์ถ๋ ฅ tok/s | ๊ฐ์ค์น GiB | | |
| |---|---|---|---|---|---| | |
| | frankenstallm BF16 | vllm | 371 | 14.5 | 16185 | 5.62 | | |
| - llama.cpp(GGUF)์์ ๋์ 4~32์ผ ๋ TPOT๊ฐ JANSORI GGUF์ 2~2.6๋ฐฐ์๋ค(์์ธ ๋ฏธํ์ธ, vLLM BF16์์๋ ์ฐจ์ด ์์). | |
| ## ์ฝ๋ ๋ฒ๊ณผ ํ๊ณ | |
| - ๋ชจ๋ ์์น๋ H200 1์ฅ, 2026-11-18~24 ์ธก์ . ๋ฐ์ดํฐ์ ยท๋น๊ต ๋ชจ๋ธ์ revision์ ๊ณ ์ ํ๋ค. ๋ชจ๋ธ 34๊ฐ(๊ณต๊ฐ 30๊ฐ ํฌํจ)๋ฅผ ๊ฐ์ ์๋ฌธ ํ๋กฌํํธ(chat ํ ํ๋ฆฟ ์์, ํ๋กํ ์ฝ U)๋ก ๋น๊ตํ๋ค. | |
| - ๊ณต๊ฐ ๋ฒค์น๋งํฌ๋ ๋น๊ต ๋ชจ๋ธ์ ํ์ต ๋ฐ์ดํฐ์ ํฌํจ๋์ ์ ์์ด ์ ์๊ฐ ๋ถํ ์ ์๋ค. ์ด ๋ชจ๋ธ์ ํ์ต ๋ฐ์ดํฐ์์ ์ค๋ณต์ ๋ฐ๋ก ๊ฒ์ฌํ์ง ์์๋ค. | |
| - ์ง์ํ ๊ฐ๊ด์(KMMLU, HAE-RAE ๋ฑ)์ ์ด ๋ชจ๋ธ์์ ๋ฌด์์(25%) ๊ทผ์ฒ๋ค. KMMLU ์ ๋ต ๋ถํฌ๊ฐ ์น์ฐ์ณ(A 9.9%) ๊ธ์ ํธํฅ๋ง์ผ๋ก๋ 20%๋๊ฐ ๋์จ๋ค(์์ธก ๋ถํฌ์ ์ ๋ต ๋ถํฌ๋ก ๊ณ์ฐํ ๊ธฐ๋๊ฐ ์ฝ 19.7%). | |
| - ์ค์ ์ ํ์ dev ๋ถํ ์์ ์ธก์ ์ ์ ๋ฑ๋กํ ๊ท์น์ผ๋ก ํ๊ณ , test์์ ์ฌํ๋์ง ์์ ์ ํ๋ ์๋ค(์๋ ๋ช ์). | |
| - ์ ์ฒด ํยท๋ฐฉ๋ฒยท์ฝ๋: https://github.com/pathcosmos/ko-llm-bench-suite (๋ณด๊ณ ์: https://pathcosmos.github.io/ko-llm-bench-suite/). ๋ฌธํญ๋ณ ์ถ๋ ฅ์ ๋ฐ์ดํฐ์ ๋ผ์ด์ ์ค(KMMLU-Redux/Pro๋ cc-by-nc-nd) ๋๋ฌธ์ ์ฌ๋ฆฌ์ง ์๋๋ค. | |