Text Generation
Transformers
Safetensors
English
kimi_linear
kimi-k3
luau
experimental-checkpoint
custom_code
Instructions to use khtsly/d with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use khtsly/d with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="khtsly/d", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("khtsly/d", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("khtsly/d", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use khtsly/d with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "khtsly/d" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "khtsly/d", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/khtsly/d
- SGLang
How to use khtsly/d 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 "khtsly/d" \ --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": "khtsly/d", "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 "khtsly/d" \ --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": "khtsly/d", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use khtsly/d with Docker Model Runner:
docker model run hf.co/khtsly/d
periodic checkpoint @ step 10300
Browse files- README.md +1 -1
- k3_2b-latest.pt +3 -0
- metrics.jsonl +11 -0
README.md
CHANGED
|
@@ -9,7 +9,7 @@ tags:
|
|
| 9 |
|
| 10 |
# d
|
| 11 |
|
| 12 |
-
In-training periodic checkpoint (step
|
| 13 |
Kimi K3 mini port (`KimiLinearForCausalLM`).
|
| 14 |
|
| 15 |
**Not a finished model** -- intermediate weights uploaded during training for safekeeping/diffing.
|
|
|
|
| 9 |
|
| 10 |
# d
|
| 11 |
|
| 12 |
+
In-training periodic checkpoint (step 10300). Architecture:
|
| 13 |
Kimi K3 mini port (`KimiLinearForCausalLM`).
|
| 14 |
|
| 15 |
**Not a finished model** -- intermediate weights uploaded during training for safekeeping/diffing.
|
k3_2b-latest.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c1ff2ea2ed9a8c9f694ea1d58822650a89d64640b0cd2da09ee87fc1c0f8991
|
| 3 |
+
size 10478273275
|
metrics.jsonl
CHANGED
|
@@ -1131,3 +1131,14 @@
|
|
| 1131 |
{"wall": 23750.784, "step": 10190, "loss": 2.114508872230848, "lm_loss": 2.114508872230848, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.3238677978515625, "tokens": 3005153280, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.380859375, "loss_smoothed": 2.1369449625412624, "seq_len": 4096}
|
| 1132 |
{"wall": 23957.907, "eval_loss": 1.883776217699051, "eval_ppl": 6.578299045562744, "step": 10200}
|
| 1133 |
{"wall": 23957.909, "step": 10200, "loss": 2.281770423054695, "lm_loss": 2.281770423054695, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.36528244614601135, "tokens": 3008102400, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.380859375, "loss_smoothed": 2.230571264276902, "seq_len": 4096}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1131 |
{"wall": 23750.784, "step": 10190, "loss": 2.114508872230848, "lm_loss": 2.114508872230848, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.3238677978515625, "tokens": 3005153280, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.380859375, "loss_smoothed": 2.1369449625412624, "seq_len": 4096}
|
| 1132 |
{"wall": 23957.907, "eval_loss": 1.883776217699051, "eval_ppl": 6.578299045562744, "step": 10200}
|
| 1133 |
{"wall": 23957.909, "step": 10200, "loss": 2.281770423054695, "lm_loss": 2.281770423054695, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.36528244614601135, "tokens": 3008102400, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.380859375, "loss_smoothed": 2.230571264276902, "seq_len": 4096}
|
| 1134 |
+
{"wall": 24244.027, "step": 10210, "loss": 2.2656367421150208, "lm_loss": 2.2656367421150208, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.3323168456554413, "tokens": 3011051520, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.2053902325530848, "seq_len": 4096}
|
| 1135 |
+
{"wall": 24449.115, "step": 10220, "loss": 2.153836896022161, "lm_loss": 2.153836896022161, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.29876238107681274, "tokens": 3014000640, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.1383815951645375, "seq_len": 4096}
|
| 1136 |
+
{"wall": 24653.437, "step": 10230, "loss": 2.2027230709791183, "lm_loss": 2.2027230709791183, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.4377819299697876, "tokens": 3016949760, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.1574684105813504, "seq_len": 4096}
|
| 1137 |
+
{"wall": 24858.265, "step": 10240, "loss": 2.070614521702131, "lm_loss": 2.070614521702131, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.31369268894195557, "tokens": 3019898880, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.180688039958477, "seq_len": 4096}
|
| 1138 |
+
{"wall": 25063.35, "step": 10250, "loss": 2.203572099407514, "lm_loss": 2.203572099407514, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.3951571583747864, "tokens": 3022848000, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.163116140663624, "seq_len": 4096}
|
| 1139 |
+
{"wall": 25267.688, "step": 10260, "loss": 2.2659132977326712, "lm_loss": 2.2659132977326712, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.3866041898727417, "tokens": 3025797120, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.159140620628993, "seq_len": 4096}
|
| 1140 |
+
{"wall": 25472.764, "step": 10270, "loss": 2.288241297006607, "lm_loss": 2.288241297006607, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.37408870458602905, "tokens": 3028746240, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.1731113865971565, "seq_len": 4096}
|
| 1141 |
+
{"wall": 25677.176, "step": 10280, "loss": 2.0418743987878165, "lm_loss": 2.0418743987878165, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.38568007946014404, "tokens": 3031695360, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.165077544997136, "seq_len": 4096}
|
| 1142 |
+
{"wall": 25882.344, "step": 10290, "loss": 2.158773437142372, "lm_loss": 2.158773437142372, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.34138041734695435, "tokens": 3034644480, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.2402724474668503, "seq_len": 4096}
|
| 1143 |
+
{"wall": 26089.518, "eval_loss": 1.8766836673021317, "eval_ppl": 6.5318074226379395, "step": 10300}
|
| 1144 |
+
{"wall": 26089.519, "step": 10300, "loss": 2.0133808155854545, "lm_loss": 2.0133808155854545, "mtp_loss": 0.0, "lr": 0.025, "grad_norm": 0.3389778435230255, "tokens": 3037593600, "adamw_lr": 0.0004, "mem_alloc_gb": 19.520028591156006, "mem_reserv_gb": 84.263671875, "loss_smoothed": 2.1546207197010516, "seq_len": 4096}
|