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", dtype="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
- stage1d-hrm-fastcap-repeat3-step720000/all_config.yaml +46 -0
- stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.0.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.1.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.2.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.3.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.4.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.5.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.6.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.7.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/.metadata +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__0_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__1_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__2_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__3_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__4_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__5_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__6_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__7_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step720000/latest_checkpoint.txt +1 -0
- stage1d-hrm-fastcap-repeat3-step720000/step_720000_info.json +8 -0
- stage1d-hrm-fastcap-repeat3-step720000/train_metadata.yaml +13 -0
- stage1d-hrm-fastcap-repeat3-step720000/upload_manifest.json +1 -0
.gitattributes
CHANGED
|
@@ -879,3 +879,12 @@ stage1d-hrm-fastcap-repeat3-step710000/fsdp2_step_710000/__5_0.distcp filter=lfs
|
|
| 879 |
stage1d-hrm-fastcap-repeat3-step710000/fsdp2_step_710000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 880 |
stage1d-hrm-fastcap-repeat3-step710000/fsdp2_step_710000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 881 |
stage1d-hrm-fastcap-repeat3-step710000/fsdp2_step_710000/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 879 |
stage1d-hrm-fastcap-repeat3-step710000/fsdp2_step_710000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 880 |
stage1d-hrm-fastcap-repeat3-step710000/fsdp2_step_710000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 881 |
stage1d-hrm-fastcap-repeat3-step710000/fsdp2_step_710000/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 882 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 883 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/.metadata filter=lfs diff=lfs merge=lfs -text
|
| 884 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 885 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 886 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 887 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 888 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 889 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 890 |
+
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
stage1d-hrm-fastcap-repeat3-step720000/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-stage1d-hrm-fastcap-repeat3-gbs180
|
| 24 |
+
checkpoint_step_interval: 10000
|
| 25 |
+
data:
|
| 26 |
+
path: /home/work/.data/hrm_text_prepared/koterm_hrm_cleaned_fastcap_stage1_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-stage4c-korean-tool-finance-repeat2-gbs180
|
| 39 |
+
resume_step: null
|
| 40 |
+
resume_step_offset: 702956
|
| 41 |
+
run_name: KoHRM-Text-1.4B-stage1d-hrm-fastcap-repeat3
|
| 42 |
+
seed: 0
|
| 43 |
+
skip_batches: 0
|
| 44 |
+
total_steps_override: 934306
|
| 45 |
+
weight_decay: 0.1
|
| 46 |
+
weights_only_resume_from_ema: false
|
stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ddc87a116eb85f1d92213674ae5dfee4254f7ee0851a1299a45eedec2523f59
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7682a862ce151c17b0c5e9f00703701a9d13ac4d3bf68fe95969ac2abb884093
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1282a16c80d5c696a7896faa688c22928f3a867713866f9d799fc0b8f9746aa4
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.3.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd36c52077dabc2e8ee5d22a77f93a15728b5ba1f478d6e6e56cb2fd23e0830d
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.4.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b65f715a93f5138b510d881516150705b78daefa0368d343cc53b2fb5fd0785
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.5.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cdcada0c11c664266373a545f361ebbac68f6d30cb56bd638594c2f4e63c7524
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.6.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f7e4f01358d3d4df47c47c4aecaf41ec68bb2548a3416d998d14831ab280782
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step720000/carry_step_720000.7.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:52827a36b1a019deea5e7ff35cdac6bf2414e277d5ec0fac7e7b5fbb8e642e48
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5435a0f26851a57d36a5eb4af7099a9253cdf017de572d8ef9578e74023ecb98
|
| 3 |
+
size 983812
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:24a1fff8aa80221cb8cac412f815773a19d6450fb489ffd688b01e7ecc75ea09
|
| 3 |
+
size 2769065329
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:76a595711dd47471b048f729f77f8989bf4e131eae98e8bef5d4d4311af9fd43
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e58b00bc946aca088d4e079d14f92562c2ac2fd72f48014b61e9a649c4e7ed46
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43fdc7e26cc2093f0d132963a8e20bf024c0887250d233dc20be03a4a12b795e
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cad1fa1cbbac1393b32ec61228799e1afe2ea58822a3dd77b658b6959441be9
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:189c3e985a045b945b22a83cf886f7efa16f44ef82ceb660e227449603ab9ba2
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9d0158052ea9b84676181ee9b88570f21e567e344831fe6ad2282299545fa8b8
|
| 3 |
+
size 2769091588
|
stage1d-hrm-fastcap-repeat3-step720000/fsdp2_step_720000/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de2e27b88f0052a760f3edae94b07ba7958535c5da1f05dcc8e73be10cf8c28c
|
| 3 |
+
size 2769098756
|
stage1d-hrm-fastcap-repeat3-step720000/latest_checkpoint.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
step_720000
|
stage1d-hrm-fastcap-repeat3-step720000/step_720000_info.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tag": "step_720000",
|
| 3 |
+
"global_step": 720000,
|
| 4 |
+
"stage_start_step": 702956,
|
| 5 |
+
"skip_batches_hint": 17044,
|
| 6 |
+
"data_path": "/home/work/.data/hrm_text_prepared/koterm_hrm_cleaned_fastcap_stage1_v1",
|
| 7 |
+
"global_batch_size": 180224
|
| 8 |
+
}
|
stage1d-hrm-fastcap-repeat3-step720000/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/huggingface/trained_tokenizers/hrm-ko-terminal-131k-v1/tokenizer.json
|
| 12 |
+
total_length: 14554291763
|
| 13 |
+
vocab_size: 131072
|
stage1d-hrm-fastcap-repeat3-step720000/upload_manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
stage1d-hrm-fastcap-repeat3 step_720000 raw resume checkpoint
|