Text Generation
Transformers
TensorBoard
Safetensors
kroha_routed_norm
kroha
looped
custom_code
training-checkpoint
multi-token-prediction
conversational
Eval Results (legacy)
Instructions to use d0rj/Kroha-base-dev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use d0rj/Kroha-base-dev with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="d0rj/Kroha-base-dev", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("d0rj/Kroha-base-dev", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use d0rj/Kroha-base-dev with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "d0rj/Kroha-base-dev" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "d0rj/Kroha-base-dev", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/d0rj/Kroha-base-dev
- SGLang
How to use d0rj/Kroha-base-dev 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 "d0rj/Kroha-base-dev" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "d0rj/Kroha-base-dev", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "d0rj/Kroha-base-dev" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "d0rj/Kroha-base-dev", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use d0rj/Kroha-base-dev with Docker Model Runner:
docker model run hf.co/d0rj/Kroha-base-dev
|
Download RESTORE.md from d0rj/Kroha-base-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.8 kB
-
https://huggingface.co/d0rj/Kroha-base-dev/resolve/main/RESTORE.md
- Command line
-
hf download hf://d0rj/Kroha-base-dev/RESTORE.md
-
curl -L -o RESTORE.md https://huggingface.co/d0rj/Kroha-base-dev/resolve/main/RESTORE.md
1.8 kB
| # Restore training artifacts | |
| Download the development repository: | |
| ```bash | |
| hf download d0rj/Kroha-base-dev --local-dir Kroha-base-dev | |
| ``` | |
| Extract the training code and the three completed checkpoints: | |
| ```bash | |
| tar -xzf Kroha-base-dev/code/training-code.tar.gz | |
| mkdir -p tiny_llm/runs/kroha-routed-norm-mtp-curriculum-36b-v1 | |
| for stage in pretrain powerup_2x powerup_8x; do | |
| tar -xzf "Kroha-base-dev/checkpoints/${stage}.tar.gz" \ | |
| -C tiny_llm/runs/kroha-routed-norm-mtp-curriculum-36b-v1 | |
| done | |
| ``` | |
| Each checkpoint contains decoder and MTP weights, Muon/AdamW states, scheduler, | |
| CPU/CUDA/Python/NumPy RNG states and the next global-batch cursor. All three | |
| stages have finished; additional pretraining or CPT needs a new data budget and | |
| schedule. | |
| `code/requirements-training.txt` records the installed training packages. | |
| `code/runtime-sources.tar.gz` contains the exact SonicMoE and patched Quack | |
| sources under `site-packages/`, with their original license notices. Restore | |
| them into the training environment after installing its dependencies. The | |
| original launcher expects `.venv-kroha-moe-20261106` and CUDA 13.3; see | |
| `scripts/kroha_sonic_env.sh` in the code snapshot. | |
| Exact replay also requires the original tokenized curriculum under | |
| `tiny_llm/data/kroha-curriculum-36b-v1`. Its manifests, tokenizer and provenance | |
| records are in `training/data-provenance.tar.gz`; corpus shards are not included. | |
| After restoring the corpus and environment, inspect the saved recipe with: | |
| ```bash | |
| cd tiny_llm | |
| bash scripts/train_kroha_curriculum.sh powerup_8x --mtp --dry-run | |
| ``` | |
| From the extracted `tiny_llm` directory, view the original TensorBoard logs: | |
| ```bash | |
| tensorboard --logdir ../Kroha-base-dev/tensorboard --port 6006 | |
| ``` | |
| File hashes and checkpoint identities are listed in `release-manifest.json`. | |