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", device_map="auto")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LLM-OS-Models/KoHRM-Text-1.4B-raw-checkpoints", dtype="auto", 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
- stage1d-hrm-fastcap-repeat3-step770000/all_config.yaml +46 -0
- stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.0.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.1.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.2.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.3.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.4.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.5.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.6.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.7.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/.metadata +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__0_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__1_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__2_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__3_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__4_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__5_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__6_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__7_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step770000/latest_checkpoint.txt +1 -0
- stage1d-hrm-fastcap-repeat3-step770000/step_770000_info.json +8 -0
- stage1d-hrm-fastcap-repeat3-step770000/train_metadata.yaml +13 -0
- stage1d-hrm-fastcap-repeat3-step770000/upload_manifest.json +1 -0
.gitattributes
CHANGED
|
@@ -924,3 +924,12 @@ stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__4_0.distcp filter=lfs
|
|
| 924 |
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 925 |
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 926 |
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 924 |
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 925 |
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 926 |
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 927 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 928 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 929 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 930 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/.metadata filter=lfs diff=lfs merge=lfs -text
|
| 931 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 932 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 933 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 934 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 935 |
+
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
stage1d-hrm-fastcap-repeat3-step770000/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-step770000/carry_step_770000.0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d41f483250a5935aee2356a11f64164421826248e8ea90dfb33920c89ad3b8ae
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9bd9fc40bb95fd4de330f3ee8c21c544c79571930e7c435ab168b1c73f5b379f
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7cca4e4bf6d232f21c66579a61e511abaaa8f4eb2a7cbe07ddbcbde43a33fd37
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.3.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d42c7c5e4ff18d23f5f99557dbff04ed64effda4a358a839bfb3b4eea8eaa8e
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.4.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce5e93ab9a8678c1c76ff5178470912f5e11e681ec232c5ec543e5cbaa34aa3c
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.5.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:321546c7d3b2910762afe7535c080853e7201f9245cda2b67e8d3307a2b83a73
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.6.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2134f5bc011f2dd10d3a4e1abbd4222ca7a0ed27a52b9d2d9274023b1f1f4283
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step770000/carry_step_770000.7.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc717e3d416dde4cb0dfa13bdab4365a96fddebdc59985c2f38ead3dc215992e
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5224b689c5c2bff186c74d77a9d400f106ea9ff53323e2609b21f6eb080bbe21
|
| 3 |
+
size 983812
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd41fab11c231a4dc8f44d07eff340f76d39d3125286ee75942311f86219f277
|
| 3 |
+
size 2769065329
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:88832a0ada558b764d53cdaf3ca3fb774d422cf2297f6ba75bc575dcf5cf2313
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db59b042b617efad85664f27b14bd814ba2979ac296b752dbbe4acb773502f4c
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc370ec144eee4dabe139edd566901d757543dba00c679f6ef6a40dbd0110ff8
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bc45126a5b531ad420ac0089dd2759faa7956aa86d11f0e0d0b83a5e2bacfa53
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdb7a3cccd5899aa3d17fa680271d70959f2edb4321a33d03790001ba0764503
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7be63b3fb4f96cc5ff0a534379e506255aa512c6467a7e1f510ea863931b194b
|
| 3 |
+
size 2769091588
|
stage1d-hrm-fastcap-repeat3-step770000/fsdp2_step_770000/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:10841ee3e6dda804c774d005ac8b7aaf64fa063e731eb2dcd6bb4de8f45eb140
|
| 3 |
+
size 2769098756
|
stage1d-hrm-fastcap-repeat3-step770000/latest_checkpoint.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
step_770000
|
stage1d-hrm-fastcap-repeat3-step770000/step_770000_info.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tag": "step_770000",
|
| 3 |
+
"global_step": 770000,
|
| 4 |
+
"stage_start_step": 702956,
|
| 5 |
+
"skip_batches_hint": 67044,
|
| 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-step770000/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-step770000/upload_manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
stage1d-hrm-fastcap-repeat3 step_770000 raw resume checkpoint
|