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")# pip install -U transformers accelerate # 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
- stage3d-local-terminal-repeat3-step870000/all_config.yaml +46 -0
- stage3d-local-terminal-repeat3-step870000/carry_step_870000.0.pt +3 -0
- stage3d-local-terminal-repeat3-step870000/carry_step_870000.1.pt +3 -0
- stage3d-local-terminal-repeat3-step870000/carry_step_870000.2.pt +3 -0
- stage3d-local-terminal-repeat3-step870000/carry_step_870000.3.pt +3 -0
- stage3d-local-terminal-repeat3-step870000/carry_step_870000.4.pt +3 -0
- stage3d-local-terminal-repeat3-step870000/carry_step_870000.5.pt +3 -0
- stage3d-local-terminal-repeat3-step870000/carry_step_870000.6.pt +3 -0
- stage3d-local-terminal-repeat3-step870000/carry_step_870000.7.pt +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/.metadata +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__0_0.distcp +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__1_0.distcp +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__2_0.distcp +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__3_0.distcp +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__4_0.distcp +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__5_0.distcp +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__6_0.distcp +3 -0
- stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__7_0.distcp +3 -0
- stage3d-local-terminal-repeat3-step870000/latest_checkpoint.txt +1 -0
- stage3d-local-terminal-repeat3-step870000/step_870000_info.json +8 -0
- stage3d-local-terminal-repeat3-step870000/train_metadata.yaml +13 -0
- stage3d-local-terminal-repeat3-step870000/upload_manifest.json +1 -0
.gitattributes
CHANGED
|
@@ -1050,3 +1050,12 @@ stage2d-hrm-full-nocap-repeat3/fsdp2_epoch_1/__3_0.distcp filter=lfs diff=lfs me
|
|
| 1050 |
stage2d-hrm-full-nocap-repeat3/fsdp2_epoch_1/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1051 |
stage2d-hrm-full-nocap-repeat3/fsdp2_epoch_1/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1052 |
stage2d-hrm-full-nocap-repeat3/fsdp2_epoch_1/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1050 |
stage2d-hrm-full-nocap-repeat3/fsdp2_epoch_1/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1051 |
stage2d-hrm-full-nocap-repeat3/fsdp2_epoch_1/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1052 |
stage2d-hrm-full-nocap-repeat3/fsdp2_epoch_1/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1053 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__4_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1054 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__3_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1055 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__2_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1056 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__0_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1057 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__6_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1058 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__5_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1059 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__7_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1060 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__1_0.distcp filter=lfs diff=lfs merge=lfs -text
|
| 1061 |
+
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/.metadata filter=lfs diff=lfs merge=lfs -text
|
stage3d-local-terminal-repeat3-step870000/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-stage3d-local-terminal-repeat3-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-stage2d-hrm-full-nocap-repeat3-gbs180
|
| 39 |
+
resume_step: null
|
| 40 |
+
resume_step_offset: 864195
|
| 41 |
+
run_name: KoHRM-Text-1.4B-stage3d-local-terminal-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
|
stage3d-local-terminal-repeat3-step870000/carry_step_870000.0.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9b611a9e9a6c758e96fd76e0f62d97baa9654f64453bc50892aeac0a74cbeb2
|
| 3 |
+
size 1333
|
stage3d-local-terminal-repeat3-step870000/carry_step_870000.1.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:68304540e1e52b4576104cefe77718b51a84b267ca63ca33757fd125b1df9762
|
| 3 |
+
size 1333
|
stage3d-local-terminal-repeat3-step870000/carry_step_870000.2.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2acf02393146b57213d3483edf54115aa50f5b97b10ede76601d21ac193b054d
|
| 3 |
+
size 1333
|
stage3d-local-terminal-repeat3-step870000/carry_step_870000.3.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4608086c7a2117254ae6ec805029c92bee0d3989ddbe42a8ff9f629a9a3026f
|
| 3 |
+
size 1333
|
stage3d-local-terminal-repeat3-step870000/carry_step_870000.4.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed7435f835222805bfc668ae5209f934ef0c481257393449521167354e2f1412
|
| 3 |
+
size 1333
|
stage3d-local-terminal-repeat3-step870000/carry_step_870000.5.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09954034cbe7bf34b8dda1c6b49411e61fa9a73cb0451bb759a590c8de8e7c6f
|
| 3 |
+
size 1333
|
stage3d-local-terminal-repeat3-step870000/carry_step_870000.6.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c899e5e80d3ecf9fb06a10c38fdfc6a5a48ae02b50c0c421e84d0c395a0a42c5
|
| 3 |
+
size 1333
|
stage3d-local-terminal-repeat3-step870000/carry_step_870000.7.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e3fa992cc49b6dda2757a8842047d3bfbbb2818643c9678f0af2609407567c1
|
| 3 |
+
size 1333
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/.metadata
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:79d6223f6e87187a6a1e87b0a50a0d0ba6291d81b71ffa86f8c7dcdd9766c954
|
| 3 |
+
size 983815
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__0_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abba260f13b13a68e25c50ad0a3c71d2c9f8bf18480d4a4e94acd7680be1d25f
|
| 3 |
+
size 2769065329
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__1_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:17f6064069b8550c98439f63f9ef88cc6bc4f75122486102ce8eaf13d5272967
|
| 3 |
+
size 2769090643
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__2_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f15248be0ea9f5535fc9a87d1060d8f8d8058f40718f1c86b0d884d50b5b737b
|
| 3 |
+
size 2769090643
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__3_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d077318f0afabc9e681ac669089b0e7c76fa5ebbbff8f52371d2c590831c8875
|
| 3 |
+
size 2769090643
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__4_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8adb3f4064312f04838711db028b4b5f2b5597f606a4effc16f62299901dc986
|
| 3 |
+
size 2769090643
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__5_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:081ed3e3f5a7e055a738e1a2d2d973ad3be03ac5c50af492486859a280d4265c
|
| 3 |
+
size 2769090643
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__6_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:19e9e5aae447fe86ed745ce44bd6f3540e1dd588830a7d85cab146bfbf7dde36
|
| 3 |
+
size 2769091588
|
stage3d-local-terminal-repeat3-step870000/fsdp2_step_870000/__7_0.distcp
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ea4307bce0a2fea2a26041fa67018553e2719811e8bd08baad0095d95bd44d46
|
| 3 |
+
size 2769098756
|
stage3d-local-terminal-repeat3-step870000/latest_checkpoint.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
step_870000
|
stage3d-local-terminal-repeat3-step870000/step_870000_info.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"tag": "step_870000",
|
| 3 |
+
"global_step": 870000,
|
| 4 |
+
"stage_start_step": 864195,
|
| 5 |
+
"skip_batches_hint": 5805,
|
| 6 |
+
"data_path": "/home/work/.data/hrm_text_prepared/local_terminal_conversations_ctx9k_resp6k_v1",
|
| 7 |
+
"global_batch_size": 180224
|
| 8 |
+
}
|
stage3d-local-terminal-repeat3-step870000/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
|
stage3d-local-terminal-repeat3-step870000/upload_manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
stage3d-local-terminal-repeat3 step_870000 raw resume checkpoint
|