Instructions to use LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot" # 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/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot
- SGLang
How to use LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot 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/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot" \ --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/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot", "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/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot" \ --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/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot with Docker Model Runner:
docker model run hf.co/LLM-OS-Models/HRM-Text-Ko-Terminal-B-SWE-GLM-Pilot
File size: 892 Bytes
0d86d1b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | arch:
H_cycles: 2
H_override: {}
L_cycles: 3
bp_max_steps: 5
bp_warmup_ratio: 0.2
expansion: 4
half_layers: true
head: lm_head@LMHead
hidden_size: 1024
init_type: lecun_normal
n_layers: 12
name: baselines.hrm_nocarry_bp_warmup@HierarchicalReasoningModel
norm_eps: 1.0e-06
norm_type: pre
num_heads: 8
pos_emb_type: rope
rope_theta: 10000.0
beta1: 0.9
beta2: 0.95
checkpoint_interval: 1
checkpoint_path: /home/work/.data/hrm_text_checkpoints/koterm_b_swe_glm_pilot_v1
data:
path: /home/work/.data/hrm_text_prepared/sft_swe_glm_mix_v1
target_only: true
ema: 0.9999
epochs: 1
fwd_bwd_dtype: bfloat16
global_batch_size: 262144
log_interval: 5
lr: 0.00022
lr_min_ratio: 1.0
lr_warmup_steps: 100
project_name: HRM-Ko-Terminal
resume_epoch: null
resume_from: null
run_name: koterm_b_swe_glm_pilot_v1
seed: 0
weight_decay: 0.1
weights_only_resume_from_ema: false
|