Instructions to use LLM-OS-Models/KoHRM-Text-1.4B-raw-checkpoints 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-raw-checkpoints 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-raw-checkpoints")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LLM-OS-Models/KoHRM-Text-1.4B-raw-checkpoints", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use LLM-OS-Models/KoHRM-Text-1.4B-raw-checkpoints 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-raw-checkpoints" # 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-raw-checkpoints", "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-raw-checkpoints
- SGLang
How to use LLM-OS-Models/KoHRM-Text-1.4B-raw-checkpoints 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-raw-checkpoints" \ --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-raw-checkpoints", "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-raw-checkpoints" \ --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-raw-checkpoints", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-OS-Models/KoHRM-Text-1.4B-raw-checkpoints with Docker Model Runner:
docker model run hf.co/LLM-OS-Models/KoHRM-Text-1.4B-raw-checkpoints
Add files using upload-large-folder tool
Browse files- .gitattributes +9 -0
- stage3-local-terminal-step220000/all_config.yaml +46 -0
- stage3-local-terminal-step220000/carry_step_220000.0.pt +3 -0
- stage3-local-terminal-step220000/carry_step_220000.1.pt +3 -0
- stage3-local-terminal-step220000/carry_step_220000.2.pt +3 -0
- stage3-local-terminal-step220000/carry_step_220000.3.pt +3 -0
- stage3-local-terminal-step220000/carry_step_220000.4.pt +3 -0
- stage3-local-terminal-step220000/carry_step_220000.5.pt +3 -0
- stage3-local-terminal-step220000/carry_step_220000.6.pt +3 -0
- stage3-local-terminal-step220000/carry_step_220000.7.pt +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/.metadata +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/__0_0.distcp +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/__1_0.distcp +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/__2_0.distcp +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/__3_0.distcp +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/__4_0.distcp +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/__5_0.distcp +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/__6_0.distcp +3 -0
- stage3-local-terminal-step220000/fsdp2_step_220000/__7_0.distcp +3 -0
- stage3-local-terminal-step220000/latest_checkpoint.txt +1 -0
- stage3-local-terminal-step220000/step_220000_info.json +8 -0
- stage3-local-terminal-step220000/train_metadata.yaml +13 -0
- stage3-local-terminal-step220000/upload_manifest.json +1 -0
.gitattributes
CHANGED
|
@@ -267,3 +267,12 @@ stage3-local-terminal-step210000/fsdp2_step_210000/__0_0.distcp filter=lfs diff=
|
|
| 267 |
stage3-local-terminal-step210000/fsdp2_step_210000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 268 |
stage3-local-terminal-step210000/fsdp2_step_210000/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 269 |
stage3-local-terminal-step210000/fsdp2_step_210000/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 267 |
stage3-local-terminal-step210000/fsdp2_step_210000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 268 |
stage3-local-terminal-step210000/fsdp2_step_210000/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 269 |
stage3-local-terminal-step210000/fsdp2_step_210000/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 270 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 271 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/.metadata filter=lfs diff=lfs merge=lfs -text
|
| 272 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 273 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 274 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 275 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 276 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 277 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 278 |
+
stage3-local-terminal-step220000/fsdp2_step_220000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
stage3-local-terminal-step220000/all_config.yaml
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
arch:
|
| 2 |
+
H_cycles: 2
|
| 3 |
+
H_override: {}
|
| 4 |
+
L_cycles: 3
|
| 5 |
+
bp_max_steps: 5
|
| 6 |
+
bp_warmup_ratio: 0.2
|
| 7 |
+
expansion: 4
|
| 8 |
+
half_layers: true
|
| 9 |
+
head: lm_head@LMHead
|
| 10 |
+
hidden_size: 1536
|
| 11 |
+
init_type: lecun_normal
|
| 12 |
+
n_layers: 32
|
| 13 |
+
name: baselines.hrm_nocarry_bp_warmup@HierarchicalReasoningModel
|
| 14 |
+
norm_eps: 1.0e-06
|
| 15 |
+
norm_type: pre
|
| 16 |
+
num_heads: 12
|
| 17 |
+
pos_emb_type: rope
|
| 18 |
+
rope_theta: 10000.0
|
| 19 |
+
beta1: 0.9
|
| 20 |
+
beta2: 0.95
|
| 21 |
+
checkpoint_interval: 1
|
| 22 |
+
checkpoint_keep_last: 2
|
| 23 |
+
checkpoint_path: /home/work/.data/hrm_text_checkpoints/KoHRM-Text-1.4B-stage3-local-terminal-gbs180
|
| 24 |
+
checkpoint_step_interval: 10000
|
| 25 |
+
data:
|
| 26 |
+
path: /home/work/.data/hrm_text_prepared/local_terminal_conversations_ctx9k_resp6k_v1
|
| 27 |
+
target_only: true
|
| 28 |
+
ema: 0.9999
|
| 29 |
+
epochs: 1
|
| 30 |
+
fwd_bwd_dtype: bfloat16
|
| 31 |
+
global_batch_size: 180224
|
| 32 |
+
log_interval: 5
|
| 33 |
+
lr: 0.00022
|
| 34 |
+
lr_min_ratio: 1.0
|
| 35 |
+
lr_warmup_steps: 2000
|
| 36 |
+
project_name: KoHRM-Text
|
| 37 |
+
resume_epoch: null
|
| 38 |
+
resume_from: /home/work/.data/hrm_text_checkpoints/KoHRM-Text-1.4B-stage2-hrm-full-nocap-gbs180
|
| 39 |
+
resume_step: null
|
| 40 |
+
resume_step_offset: 165617
|
| 41 |
+
run_name: KoHRM-Text-1.4B-stage3-local-terminal
|
| 42 |
+
seed: 0
|
| 43 |
+
skip_batches: 0
|
| 44 |
+
total_steps_override: 465000
|
| 45 |
+
weight_decay: 0.1
|
| 46 |
+
weights_only_resume_from_ema: false
|
stage3-local-terminal-step220000/carry_step_220000.0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c584742e3318e13cbc5787b68b6d5280e691bf92703c80f008a865c4cbbea0a
|
| 3 |
+
size 1333
|
stage3-local-terminal-step220000/carry_step_220000.1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:738cbe85ccc590cf35b103894b7fb73e3bed47f7629bfc755cfa7bc6b82dfb99
|
| 3 |
+
size 1333
|
stage3-local-terminal-step220000/carry_step_220000.2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef9b0a6f5658ad93f360a332f4aded521d342831ef31627cc82a4494926fee5a
|
| 3 |
+
size 1333
|
stage3-local-terminal-step220000/carry_step_220000.3.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6909700f14ba31fcf1e46737809c5ea52c0ca7b1ffd7c3d01d6fe601b1a81d9d
|
| 3 |
+
size 1333
|
stage3-local-terminal-step220000/carry_step_220000.4.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ec02da51dd73ea593642f6acb1b01db261c00f1e5e1a9c96ec030be180226bd2
|
| 3 |
+
size 1333
|
stage3-local-terminal-step220000/carry_step_220000.5.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46eba369ad9c818ddfa0b4c0f6b7e23f51b1f644f767132f5b2eb470e3e5cadb
|
| 3 |
+
size 1333
|
stage3-local-terminal-step220000/carry_step_220000.6.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:02cbcb5512c4905925ce8830411cf926d971b46621d6b6edfb048ba15b5e78eb
|
| 3 |
+
size 1333
|
stage3-local-terminal-step220000/carry_step_220000.7.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2553d0204cc137ce1e2fc56bd2c7a4d7f70ab6f9235b85515a049e2f30be53f4
|
| 3 |
+
size 1333
|
stage3-local-terminal-step220000/fsdp2_step_220000/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:64008e4d655e2ca244046bdc33ee5e7b93e492b767c7aec9b102a70d2a7737d3
|
| 3 |
+
size 983806
|
stage3-local-terminal-step220000/fsdp2_step_220000/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:846a779f06e90c6d26fcaf3379a5b535a5d0cd0c645ae997ded333aeb00536e0
|
| 3 |
+
size 2769065329
|
stage3-local-terminal-step220000/fsdp2_step_220000/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8837e9dae17e071610e2d81323f1b68f77c6c5693efcd51c33e3586603f482c4
|
| 3 |
+
size 2769090643
|
stage3-local-terminal-step220000/fsdp2_step_220000/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39440651b3ce78dff5fe04b1fb6cbb3903e7cfb3e2a6f8e3209c32c84c228bb8
|
| 3 |
+
size 2769090643
|
stage3-local-terminal-step220000/fsdp2_step_220000/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:28b69e1eef93139e8f1201e5a3fb38864abd538092e9525edbe83b8f83b69611
|
| 3 |
+
size 2769090643
|
stage3-local-terminal-step220000/fsdp2_step_220000/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e83d20595491304c3c441f035f310137b31fcc72bd520ca6c0488c89427941f
|
| 3 |
+
size 2769090643
|
stage3-local-terminal-step220000/fsdp2_step_220000/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3626a1cfe5e3c34df9b97e8f33a01eb49166e3a308b6da675441c47f3e0b5c5f
|
| 3 |
+
size 2769090643
|
stage3-local-terminal-step220000/fsdp2_step_220000/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2d764757b24c8bfe2a6c0fa683dc7f0a79f13b23a183b3c3dfbb1e86b5e445b3
|
| 3 |
+
size 2769091588
|
stage3-local-terminal-step220000/fsdp2_step_220000/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c55eccb454ba52acb5f8e6b25ffd535ed62a64f265c9f240ab4de5bcde81dd53
|
| 3 |
+
size 2769098756
|
stage3-local-terminal-step220000/latest_checkpoint.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
step_220000
|
stage3-local-terminal-step220000/step_220000_info.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tag": "step_220000",
|
| 3 |
+
"global_step": 220000,
|
| 4 |
+
"stage_start_step": 165617,
|
| 5 |
+
"skip_batches_hint": 54383,
|
| 6 |
+
"data_path": "/home/work/.data/hrm_text_prepared/local_terminal_conversations_ctx9k_resp6k_v1",
|
| 7 |
+
"global_batch_size": 180224
|
| 8 |
+
}
|
stage3-local-terminal-step220000/train_metadata.yaml
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
max_seq_len: 4096
|
| 2 |
+
tokenizer_info:
|
| 3 |
+
boq: <|im_start|>
|
| 4 |
+
condition_mapping:
|
| 5 |
+
cot: <|object_ref_end|>
|
| 6 |
+
direct: <|object_ref_start|>
|
| 7 |
+
noisy: <|quad_start|>
|
| 8 |
+
synth: <|quad_end|>
|
| 9 |
+
eoa: <|box_end|>
|
| 10 |
+
eoq: <|im_end|>
|
| 11 |
+
tokenizer_path: /home/work/.data/hrm_text_prepared/local_terminal_conversations_ctx9k_resp6k_v1
|
| 12 |
+
total_length: 9386532467
|
| 13 |
+
vocab_size: 131072
|
stage3-local-terminal-step220000/upload_manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
stage3-local-terminal step_220000 raw resume checkpoint
|