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")# 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
docs: add training hardware specs (8x B200, EPYC 9365, software stack)
Browse files
README.md
CHANGED
|
@@ -34,6 +34,48 @@ llama.cpp/GGUF ์ถ๋ก ์ ์ค๋ฐ๊ฟ(`\n`) ๋ฑ ๋ฏธ๋ฑ๋ก ๋ฌธ์๋ก ์ธํ ํฌ๋
|
|
| 34 |
- ์๋ฒ ๋ฉ: 64,000 โ 64,256 ๋ฆฌ์ฌ์ด์ฆ, ์ ํ ํฐ ์ด๊ธฐํ
|
| 35 |
- GGUF ๋ณํยทOllama ๋ฐฐํฌ ์ ๋ด๋ผ์ธ ํฌํจ ์
๋ ฅ ์ ์ ์ฒ๋ฆฌ ํ์ธ
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
## ORPO ํ๊ฐ ์์ฝ (๋์ผ ์ฒดํฌํฌ์ธํธ ๊ธฐ์ค)
|
| 38 |
|
| 39 |
- **ํ๊ฐ ์ผ์**: 2026-03-09
|
|
@@ -60,8 +102,21 @@ llama.cpp/GGUF ์ถ๋ก ์ ์ค๋ฐ๊ฟ(`\n`) ๋ฑ ๋ฏธ๋ฑ๋ก ๋ฌธ์๋ก ์ธํ ํฌ๋
|
|
| 60 |
## ์ฌ์ฉ
|
| 61 |
|
| 62 |
- **Transformers**: ์ด ์ฒดํฌํฌ์ธํธ๋ฅผ ๊ทธ๋๋ก `from_pretrained(...)` ๋ก ๋ก๋ ๊ฐ๋ฅ.
|
| 63 |
-
- **GGUF
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
|
| 66 |
## ๋ผ์ด์ ์ค
|
| 67 |
|
|
|
|
| 34 |
- ์๋ฒ ๋ฉ: 64,000 โ 64,256 ๋ฆฌ์ฌ์ด์ฆ, ์ ํ ํฐ ์ด๊ธฐํ
|
| 35 |
- GGUF ๋ณํยทOllama ๋ฐฐํฌ ์ ๋ด๋ผ์ธ ํฌํจ ์
๋ ฅ ์ ์ ์ฒ๋ฆฌ ํ์ธ
|
| 36 |
|
| 37 |
+
## ํ์ต ํ๊ฒฝ (Training Hardware)
|
| 38 |
+
|
| 39 |
+
### GPU
|
| 40 |
+
|
| 41 |
+
| ํญ๋ชฉ | ์ฌ์ |
|
| 42 |
+
|------|------|
|
| 43 |
+
| **GPU** | 8ร NVIDIA B200 |
|
| 44 |
+
| **VRAM (per GPU)** | 183 GB HBM3e |
|
| 45 |
+
| **Total VRAM** | ~1,466 GB (~1.47 TB) |
|
| 46 |
+
| **FP8 Tensor Core** | 2,250 TFLOPS/GPU (์ด 18,000 TFLOPS) |
|
| 47 |
+
| **BF16 Tensor Core** | 1,125 TFLOPS/GPU |
|
| 48 |
+
| **HBM3e Bandwidth** | ~7.67 TB/s per GPU |
|
| 49 |
+
| **Interconnect** | NVLink 5.0 (NV18, 900 GB/s bidirectional) |
|
| 50 |
+
| **Topology** | NVSwitch โ ๋ชจ๋ GPUโGPU ๋จ์ผ ํ all-to-all mesh |
|
| 51 |
+
| **SMs per GPU** | 148 |
|
| 52 |
+
| **L2 Cache per GPU** | 126.5 MB |
|
| 53 |
+
|
| 54 |
+
### CPU & Memory
|
| 55 |
+
|
| 56 |
+
| ํญ๋ชฉ | ์ฌ์ |
|
| 57 |
+
|------|------|
|
| 58 |
+
| **CPU** | 2ร AMD EPYC 9365 (Turin / Zen 5) |
|
| 59 |
+
| **Physical Cores** | 72 (36์ฝ์ด ร 2์์ผ) |
|
| 60 |
+
| **L3 Cache** | 384 MB (12 CCX ร 32 MB) |
|
| 61 |
+
| **System RAM** | 2.21 TB DDR5 (NUMA 2๋
ธ๋ ร ~1.1 TB) |
|
| 62 |
+
| **GPUโNUMA ๋งคํ** | GPU 0โ3 โ NUMA node 0 / GPU 4โ7 โ NUMA node 1 |
|
| 63 |
+
|
| 64 |
+
### ์ํํธ์จ์ด ์คํ
|
| 65 |
+
|
| 66 |
+
| ํจํค์ง | ๋ฒ์ |
|
| 67 |
+
|--------|------|
|
| 68 |
+
| **CUDA** | 13.1 |
|
| 69 |
+
| **Driver** | 580.95.05 |
|
| 70 |
+
| **PyTorch** | 2.10.0a0+b4e4ee81d3 (NVIDIA nv25.12 ์ปค์คํ
๋น๋, B200 ์ต์ ํ) |
|
| 71 |
+
| **Transformer Engine** | 2.10.0 |
|
| 72 |
+
| **FlashAttention** | 2.7.4.post1+25.12 |
|
| 73 |
+
| **NCCL** | 2.28.9 |
|
| 74 |
+
| **Triton** | 3.5.1 |
|
| 75 |
+
| **TRL** | ORPO fine-tuning |
|
| 76 |
+
|
| 77 |
+
> **์ฐธ๊ณ **: PyTorch๋ NVIDIA B200 ์ต์ ํ ์ปค์คํ
๋น๋(`nv25.12`)๋ฅผ ์ฌ์ฉํฉ๋๋ค. FP8 ๋ค์ดํฐ๋ธ ์ฐ์ฐ(`torch.float8_e4m3fn`) ์ง์ ํ๊ฒฝ์
๋๋ค.
|
| 78 |
+
|
| 79 |
## ORPO ํ๊ฐ ์์ฝ (๋์ผ ์ฒดํฌํฌ์ธํธ ๊ธฐ์ค)
|
| 80 |
|
| 81 |
- **ํ๊ฐ ์ผ์**: 2026-03-09
|
|
|
|
| 102 |
## ์ฌ์ฉ
|
| 103 |
|
| 104 |
- **Transformers**: ์ด ์ฒดํฌํฌ์ธํธ๋ฅผ ๊ทธ๋๋ก `from_pretrained(...)` ๋ก ๋ก๋ ๊ฐ๋ฅ.
|
| 105 |
+
- **GGUF / Ollama**:
|
| 106 |
+
```bash
|
| 107 |
+
# Q4_K_M (๊ถ์ฅ, 757MB)
|
| 108 |
+
ollama create frankenstallm-3b-v2:Q4_K_M -f gguf/Modelfile.3b-v2-Q4_K_M
|
| 109 |
+
ollama run frankenstallm-3b-v2:Q4_K_M
|
| 110 |
+
|
| 111 |
+
# Q8_0 (๊ณ ํ์ง, 1.2GB)
|
| 112 |
+
ollama create frankenstallm-3b-v2:Q8_0 -f gguf/Modelfile.3b-v2-Q8_0
|
| 113 |
+
ollama run frankenstallm-3b-v2:Q8_0
|
| 114 |
+
|
| 115 |
+
# f16 (์ต๊ณ ํ์ง, 2.3GB)
|
| 116 |
+
ollama create frankenstallm-3b-v2:f16 -f gguf/Modelfile.3b-v2-f16
|
| 117 |
+
ollama run frankenstallm-3b-v2:f16
|
| 118 |
+
```
|
| 119 |
+
Modelfile์ ๊ฒ์ฆ๋ ์ํ๋ง ํ๋ผ๋ฏธํฐ(`temperature=0.7, repeat_penalty=1.2`)๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
|
| 120 |
|
| 121 |
## ๋ผ์ด์ ์ค
|
| 122 |
|