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 dna_config.json from d0rj/Kroha-base-dev: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/d0rj/Kroha-base-dev/resolve/main/dna_config.json
- Command line
-
hf download hf://d0rj/Kroha-base-dev/dna_config.json
-
curl -L -o dna_config.json https://huggingface.co/d0rj/Kroha-base-dev/resolve/main/dna_config.json
1.28 kB
| { | |
| "version": "b64-dna6-v3", | |
| "base_vocabulary_size": 65536, | |
| "vocab_size": 69650, | |
| "k": 6, | |
| "canonical_alphabet": "ACGT", | |
| "fallback_alphabet": "ACGTURYSWKMBDHVN", | |
| "begin_id": 65536, | |
| "end_id": 65537, | |
| "kmer_id_start": 65538, | |
| "kmer_count": 4096, | |
| "base_id_start": 69634, | |
| "base_count": 16, | |
| "canonical_order": "itertools.product(ACGT, repeat=6), lexicographic", | |
| "raw_text_default": true, | |
| "auto_detection": false, | |
| "normalization": "identity", | |
| "fallback": "Each noncanonical six-character block/short tail is encoded character by character; uppercase IUPAC gets DNA symbols; other characters use unchanged raw BPE", | |
| "offsets": "Unicode character offsets and IUPAC-base offsets; gaps/layout have zero bp width", | |
| "decoder": "Native Tokenizers Replace-per-piece then unchanged ByteLevel; no remote/custom decoder", | |
| "encoding_entrypoint": "tiny_llm.dna.DNACodec", | |
| "chat": "Same text chat template; DNACodec.encode enables tagged DNA/spans and preserves assistant masks", | |
| "reserve": "Original 51 reserved IDs remain unchanged and unconsumed", | |
| "FNS": "Not implemented; offsets and DNA ID ranges exposed for future training integration", | |
| "future_model_scope": "New vocabulary requires matching embedding/head rows; does not migrate old weights" | |
| } | |