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-step760000/all_config.yaml +46 -0
- stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.0.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.1.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.2.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.3.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.4.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.5.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.6.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.7.pt +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/.metadata +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__0_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__1_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__2_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__3_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__4_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__5_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__6_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__7_0.distcp +3 -0
- stage1d-hrm-fastcap-repeat3-step760000/latest_checkpoint.txt +1 -0
- stage1d-hrm-fastcap-repeat3-step760000/step_760000_info.json +8 -0
- stage1d-hrm-fastcap-repeat3-step760000/train_metadata.yaml +13 -0
- stage1d-hrm-fastcap-repeat3-step760000/upload_manifest.json +1 -0
.gitattributes
CHANGED
|
@@ -915,3 +915,12 @@ stage1d-hrm-fastcap-repeat3-step750000/fsdp2_step_750000/__4_0.distcp filter=lfs
|
|
| 915 |
stage1d-hrm-fastcap-repeat3-step750000/fsdp2_step_750000/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 916 |
stage1d-hrm-fastcap-repeat3-step750000/fsdp2_step_750000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 917 |
stage1d-hrm-fastcap-repeat3-step750000/fsdp2_step_750000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 915 |
stage1d-hrm-fastcap-repeat3-step750000/fsdp2_step_750000/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 916 |
stage1d-hrm-fastcap-repeat3-step750000/fsdp2_step_750000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 917 |
stage1d-hrm-fastcap-repeat3-step750000/fsdp2_step_750000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 918 |
+
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 919 |
+
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 920 |
+
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/.metadata filter=lfs diff=lfs merge=lfs -text
|
| 921 |
+
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 922 |
+
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 923 |
+
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__4_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
|
stage1d-hrm-fastcap-repeat3-step760000/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-step760000/carry_step_760000.0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dc425df58642fed6f0e3368d5c803fac0e30aaddedb916872e27abdc479bc872
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:005df5b4c468981ba03d8d355798db45590b0aab69a61dffa3fadbfceff9bce9
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7057effa166542c6ed61442f176812573e0aae77e749ad40e804e4a717be59a8
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.3.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:20c674b32bfca097108f7c8637c4079d653ad44e5e25c7f177a0566740b0b1c2
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.4.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d7b1661850f4e71fa066a6c9ea0e1e7875070da91fdb51f81794c39d23137da
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.5.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f492ff678ba59c704cc05733353f7369e13be2f57a445e0ebb0ad0d18a0475cc
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.6.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:54bfc2c90406277104fc71063c31ed88b0900d52798f93df6bec714a02f87e0a
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step760000/carry_step_760000.7.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd3a7f46509d73787f23fd21e571c0639d8dc2ecdc7efcdc4d2a46741d09ed86
|
| 3 |
+
size 1333
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4115c7a7b4f59b3197029f1284906f8acaa65f71345517bb824c75bd0f397dd4
|
| 3 |
+
size 983812
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7df18bb1f39a870c0c7200a436601f951f718f06e41050919f00aa11493de72f
|
| 3 |
+
size 2769065329
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3f78a2132895b5a9b23a5f768cda9c7bee4b0951d48c8c749df29a2915631f10
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09b07b88775760386394c6f18ee7c14d2d55f1ce8e8836faa69430771bc75f81
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f349c24f001118cd3567945f507d0652f5c95080e7150d44619d1ab4460e0c70
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d17e8a34a0c118a1b699bd9d696ba6c7fc350e73cc235e3531c304a98e9cb1b
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:566d8a20a08ac09b763b268b1f7515a7b618d0caae62afdf102facf83929b592
|
| 3 |
+
size 2769090643
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c38d67bcec5af4c36478c55905fa289be118291b3854597271329d5567a8327
|
| 3 |
+
size 2769091588
|
stage1d-hrm-fastcap-repeat3-step760000/fsdp2_step_760000/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f9a754ffc5d1891ee2c5c62733fe756c6a64632fe6fb038b559927d78bba6603
|
| 3 |
+
size 2769098756
|
stage1d-hrm-fastcap-repeat3-step760000/latest_checkpoint.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
step_760000
|
stage1d-hrm-fastcap-repeat3-step760000/step_760000_info.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tag": "step_760000",
|
| 3 |
+
"global_step": 760000,
|
| 4 |
+
"stage_start_step": 702956,
|
| 5 |
+
"skip_batches_hint": 57044,
|
| 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-step760000/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-step760000/upload_manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
stage1d-hrm-fastcap-repeat3 step_760000 raw resume checkpoint
|