Text Generation
Transformers
Safetensors
Korean
English
hrm_text
hrm-text
korean
terminal
tool-use
code
pretraining
prefix-lm
Instructions to use LLM-OS-Models/KoHRM-Text-1.4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-OS-Models/KoHRM-Text-1.4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-OS-Models/KoHRM-Text-1.4B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("LLM-OS-Models/KoHRM-Text-1.4B") model = AutoModelForCausalLM.from_pretrained("LLM-OS-Models/KoHRM-Text-1.4B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use LLM-OS-Models/KoHRM-Text-1.4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-OS-Models/KoHRM-Text-1.4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "LLM-OS-Models/KoHRM-Text-1.4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM-OS-Models/KoHRM-Text-1.4B
- SGLang
How to use LLM-OS-Models/KoHRM-Text-1.4B 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 "LLM-OS-Models/KoHRM-Text-1.4B" \ --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": "LLM-OS-Models/KoHRM-Text-1.4B", "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 "LLM-OS-Models/KoHRM-Text-1.4B" \ --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": "LLM-OS-Models/KoHRM-Text-1.4B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-OS-Models/KoHRM-Text-1.4B with Docker Model Runner:
docker model run hf.co/LLM-OS-Models/KoHRM-Text-1.4B
Fix formatting token rendering in model card
Browse files
README.md
CHANGED
|
@@ -109,15 +109,15 @@ The tokenizer was trained for Korean, English, code, shell/terminal text, and JS
|
|
| 109 |
|
| 110 |
Formatting tokens:
|
| 111 |
|
| 112 |
-
|
| 113 |
-
|
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
|
| 121 |
|
| 122 |
Prompt format used by the project-side inference code:
|
| 123 |
|
|
@@ -380,15 +380,15 @@ This work builds on HRM-Text:
|
|
| 380 |
|
| 381 |
ํฌ๋งท token:
|
| 382 |
|
| 383 |
-
|
| 384 |
-
|
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
|
| 392 |
|
| 393 |
ํ๋ก์ ํธ ๋ด๋ถ inference code๊ฐ ์ฐ๋ prompt ํ์:
|
| 394 |
|
|
|
|
| 109 |
|
| 110 |
Formatting tokens:
|
| 111 |
|
| 112 |
+
```text
|
| 113 |
+
<|im_start|> instruction start
|
| 114 |
+
<|im_end|> instruction end
|
| 115 |
+
<|box_end|> response/end marker
|
| 116 |
+
<|object_ref_start|> direct condition
|
| 117 |
+
<|object_ref_end|> chain-of-thought style condition
|
| 118 |
+
<|quad_start|> noisy condition
|
| 119 |
+
<|quad_end|> synthetic condition
|
| 120 |
+
```
|
| 121 |
|
| 122 |
Prompt format used by the project-side inference code:
|
| 123 |
|
|
|
|
| 380 |
|
| 381 |
ํฌ๋งท token:
|
| 382 |
|
| 383 |
+
```text
|
| 384 |
+
<|im_start|> instruction ์์
|
| 385 |
+
<|im_end|> instruction ์ข
๋ฃ
|
| 386 |
+
<|box_end|> response/end marker
|
| 387 |
+
<|object_ref_start|> direct condition
|
| 388 |
+
<|object_ref_end|> chain-of-thought style condition
|
| 389 |
+
<|quad_start|> noisy condition
|
| 390 |
+
<|quad_end|> synthetic condition
|
| 391 |
+
```
|
| 392 |
|
| 393 |
ํ๋ก์ ํธ ๋ด๋ถ inference code๊ฐ ์ฐ๋ prompt ํ์:
|
| 394 |
|