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")# 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
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -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/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -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
- 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
language:
- ko
license: other
tags:
- llm
- korean
- orpo
- gguf
FRANKENSTALLM 3B v2 (Byte-Fallback Fixed)
ํ๊ตญ์ด ์ค์ฌ FRANKENSTALLM 3B ORPO ํ์ธํ๋ ์ฒดํฌํฌ์ธํธ์ byte-fallback ํ ํฐ 256๊ฐ๋ฅผ ์ถ๊ฐํ ๋ฒ์ ์
๋๋ค.
llama.cpp/GGUF ์ถ๋ก ์ ์ค๋ฐ๊ฟ(\n) ๋ฑ ๋ฏธ๋ฑ๋ก ๋ฌธ์๋ก ์ธํ ํฌ๋์๋ฅผ ๋ฐฉ์งํ๊ธฐ ์ํด ์ฌ์ฉํฉ๋๋ค.
๋ชจ๋ธ ์์ธ
| ํญ๋ชฉ | ๊ฐ |
|---|---|
| Architecture | LlamaForCausalLM |
| Params | ~3B |
| Hidden size | 2048 |
| Layers | 24 |
| Attention heads | 16 |
| KV heads | 4 |
| Max position | 4096 |
| Vocab size | 64,256 (64,000 + 256 byte-fallback) |
| Training | ORPO (SFT โ ORPO) |
๋ณ๊ฒฝ ์ฌํญ (v2)
- ํ ํฌ๋์ด์ :
byte_fallback=True,<0x00>~`<0xFF>` 256๊ฐ ํ ํฐ ์ถ๊ฐ - ์๋ฒ ๋ฉ: 64,000 โ 64,256 ๋ฆฌ์ฌ์ด์ฆ, ์ ํ ํฐ ์ด๊ธฐํ
- GGUF ๋ณํยทOllama ๋ฐฐํฌ ์ ๋ด๋ผ์ธ ํฌํจ ์ ๋ ฅ ์ ์ ์ฒ๋ฆฌ ํ์ธ
ORPO ํ๊ฐ ์์ฝ (๋์ผ ์ฒดํฌํฌ์ธํธ ๊ธฐ์ค)
- ํ๊ฐ ์ผ์: 2026-03-09
- Preference Accuracy: 76.02%
- Reward Margin: 0.6100
- Eval Loss: 1.7910 โ 1.6250
- KoBEST (0-shot) ํ๊ท : 52.75%
- ์์ฑ ํ์ง: Greedy 3-gram ๋ฐ๋ณต๋ฅ 30.89%, EOS ์ข ๋ฃ์จ 66.67%
- PPL Forgetting: ์ต๋ 4.1% (๊ธฐ์ค <15%)
- ์ข ํฉ: 7/10 ์ฐจ์ ํต๊ณผ, ์ ๋ ์ค์ฝ์ด 63.7/100
์์ธ: ํ๋ก์ ํธ ๋ด reports/2026-03-09_ORPO_EVALUATION_REPORT.md ์ฐธ๊ณ .
Ollama ๋ฐฐํฌ ๋ฒค์น๋งํฌ (Q4_K_M, 2026-03-09)
- ๋ชจ๋ธ๋ช
:
frankenstallm-3b-v2 - ํ ์คํธ ์: 35 (์๋ 20 + ์๋ 15)
- ์๋ ์ฑ์ ํ๊ท : 46.7
- ์นดํ ๊ณ ๋ฆฌ: korean_nlu 100.0, reasoning 50.0, knowledge 75.0, instruction_following 66.7, code 0.0, safety 10.0, repetition_resistance 2.2 ๋ฑ
- ์ง์ฐ: Avg TTFT 16.7 ms, Avg TPS 142.5
์์ธ: reports/2026-03-09_GGUF_DEPLOYMENT_AND_EVAL_REPORT.md, eval/results/frankenstallm-3b-v2/ollama_benchmark_summary.md
์ฌ์ฉ
- Transformers: ์ด ์ฒดํฌํฌ์ธํธ๋ฅผ ๊ทธ๋๋ก
from_pretrained(...)๋ก ๋ก๋ ๊ฐ๋ฅ. - GGUF:
scripts/fix_tokenizer_byte_fallback.py์ ์ฉ ํconvert_hf_to_gguf.pyโllama-quantize๋ก ๋ณํํ v2 ํ์ดํ๋ผ์ธ ์ฌ์ฉ ๊ถ์ฅ.
์ด๋ฏธ ๋ณํ๋ Q4_K_M GGUF๋ Ollama์์frankenstallm-3b-v2๋ก ๋ฐฐํฌ ๊ฐ๋ฅ.
๋ผ์ด์ ์ค
ํ๋ก์ ํธ(FRANKENSTALLM) ๋ผ์ด์ ์ค์ ๋ฐ๋ฆ ๋๋ค.