Text Generation
Transformers
Safetensors
kroha_routed_norm
kroha
custom_code
mixture-of-experts
gated-deltanet
recurrent
looped
multilingual
code
base-model
conversational
Eval Results (legacy)
Instructions to use d0rj/Kroha-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use d0rj/Kroha-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="d0rj/Kroha-base", 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", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use d0rj/Kroha-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "d0rj/Kroha-base" # 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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/d0rj/Kroha-base
- SGLang
How to use d0rj/Kroha-base 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" \ --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", "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" \ --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", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use d0rj/Kroha-base with Docker Model Runner:
docker model run hf.co/d0rj/Kroha-base
Download export.json from d0rj/Kroha-base: direct link, hf CLI and curl.
- Browser
- Download file 1.77 kB
-
https://huggingface.co/d0rj/Kroha-base/resolve/main/export.json
- Command line
-
hf download hf://d0rj/Kroha-base/export.json
-
curl -L -o export.json https://huggingface.co/d0rj/Kroha-base/resolve/main/export.json
1.77 kB
| { | |
| "status": "exported", | |
| "model": "Kroha", | |
| "source_stage": "powerup_8x", | |
| "source_config_sha256": "e1f8da93e02e113d4d7603ff8c0c96928d43685e869d66819ca5e58694441ad7", | |
| "source_weight_sha256": { | |
| "model.safetensors": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884" | |
| }, | |
| "learned_tensors_unchanged": true, | |
| "code_files": [ | |
| "configuration_kroha.py", | |
| "modeling_kroha.py" | |
| ], | |
| "training_repository": "d0rj/Kroha-base-dev", | |
| "files_sha256": { | |
| "chat_template.jinja": "b51e43a90a9c7da4db3bce84bd27cd798699191b83663d1c75c234481c040966", | |
| "config.json": "a095714decc73d9b17c7bbe019e3c98c55f32716252983c5886092bd4ca9df74", | |
| "configuration_kroha.py": "9d83cd17f1bcb26e98d695da72411c4e2aebf7580d939d7ba43d5adfa00e23d5", | |
| "dna_config.json": "e6fc6908e68998130a574bf3a0439b135bf4bd121601b3ce7ccd56c8a6903da1", | |
| "evaluation.csv": "0c842258817c4be5ce43c6078bba313b8858d91fe93ad530ee1b81eb3b11f84a", | |
| "evaluation.json": "2334711b413c148757174d36e6992a72812eb6f0498de415e1bbfd2ec0b05d2f", | |
| "generation_config.json": "ec36960ffaccb09d682bc355b89a64a969a16417de96d64350fcb66aebaec7eb", | |
| "LICENSE": "9e5f1b3c610b9c2da5c313bf81d577a7d1acec686bdb0384edefa6df0f90cd94", | |
| "model.safetensors": "b2963b9c429c28d24407c7d2355752e14fb6a4e116268b92743fda4e81939884", | |
| "modeling_kroha.py": "d99422d839dc0ad82bad9c9c4870aa73b9462172079840639bb05e0678f86809", | |
| "README.md": "366f07225f1d39f07627d436cd8f821258150b24b72036ef6ec5042c74b5c11e", | |
| "requirements.txt": "a73cacbfdd9eb35af8044c73de19a8444c01d9cfe163f65563432e5dbba38ecc", | |
| "tokenizer.json": "243c73710d5bff983000eadf9b6d71d802b7291afffb8503cbbe6770da2084e8", | |
| "tokenizer_config.json": "afa0226ffe5b2fe7b0f546f041cad7e33a29cf2ac55c954808f85ddbd79a3f5a" | |
| } | |
| } | |