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
File size: 4,294 Bytes
0d9fc7a | 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 42 43 44 45 46 47 48 49 50 51 52 | task,language,metric,filter,shots,examples,kroha_score_x100,cria_score_x100,gpt_x3_score_x100,supra2_score_x100,gpt2_score_x100
arc_challenge,en,acc_norm,none,0,1172,22.610921501706486,30.46075085324232,31.655290102389078,24.573378839590443,22.525597269624573
arc_easy,en,acc_norm,none,0,2376,36.82659932659932,58.333333333333336,59.553872053872055,47.72727272727273,39.64646464646464
arithmark3,en,acc_norm,none,0,1000,33.800000000000004,37.1,51.6,37.5,35.6
balanced_copa,en,acc,none,0,1000,52.7,58.699999999999996,60.099999999999994,57.8,55.400000000000006
blimp,en,acc,none,0,67000,74.41641791044776,80.38059701492537,79.80597014925372,80.90746268656717,83.33731343283581
boolq,en,acc,none,0,3270,60.550458715596335,53.97553516819572,58.31804281345566,61.7125382262997,49.9388379204893
commonsense_qa,en,acc,none,0,1221,20.638820638820636,20.475020475020475,21.294021294021295,21.294021294021295,19.574119574119575
hellaswag,en,acc_norm,none,0,10042,29.446325433180643,39.016132244572795,45.966938856801434,35.998805018920535,31.218880701055568
lambada_openai,en,acc,none,0,5153,25.926644673006017,38.327188045798565,36.75528818164176,35.64913642538327,30.62293809431399
mmlu_continuation,en,acc,none,0,14042,24.668850591083892,26.662868537245405,28.64976499074206,26.983335707164223,25.210084033613445
openbookqa,en,acc_norm,none,0,500,26.0,33.800000000000004,34.4,32.0,27.0
piqa,en,acc_norm,none,0,1838,55.549510337323184,64.68988030467901,71.10990206746463,65.12513601741023,63.43852013057671
sciq,en,acc_norm,none,0,1000,68.7,89.9,80.10000000000001,70.8,63.9
truthfulqa_mc2,en,acc,none,0,817,43.09439862757557,41.71062426671874,40.03218630845387,40.749000394836344,40.698004094957426
winogrande,en,acc,none,0,1267,50.74980268350434,52.56511444356748,53.74901341752171,51.223362273086025,50.82872928176796
bananamind_base,en,raw_accuracy,none,0,350,52.0,60.57142857142858,66.28571428571428,56.57142857142857,51.42857142857142
social_iqa,en,acc,none,0,1954,36.796315250767655,40.634595701125896,38.996929375639716,38.3828045035824,36.54042988741044
race,en,acc,none,0,1045,26.220095693779903,30.7177033492823,33.588516746411486,30.14354066985646,29.665071770334926
mmlu,en,acc,none,5,14042,26.264064948013104,25.580401652186296,25.31690642358638,25.13886910696482,26.292550918672553
triviaqa,en,exact_match,remove_whitespace,0,17944,0.35109228711547036,4.837271511368703,2.2848863129736956,1.1312973695942934,0.362238074008025
gsm8k,en,exact_match,flexible-extract,5,1319,1.819560272934041,1.9711902956785443,4.927975739196361,1.1372251705837757,1.2130401819560273
hendrycks_math500,en,exact_match,none,0,500,0.2,0.0,1.6,0.4,0.2
bbh,en,exact_match,get-answer,3,6511,20.488404238980188,17.90815542927354,23.51405314083858,6.896022116418369,4.761173398863462
humaneval,en,pass@1,create_test,0,164,3.6585365853658534,0.0,1.8292682926829267,0.0,0.0
mbpp,en,pass_at_1,none,3,500,0.0,0.2,1.2,0.0,0.0
mbpp_plus,en,pass_at_1,none,3,378,0.26455026455026454,0.0,1.0582010582010581,0.0,0.0
mmlu_pro_mc0,en,acc,none,0,12032,11.328125,,,,
global_mmlu_full_ru,ru,acc,none,5,14042,26.47058823529412,,,,
mmlu_prox_ru_mc0,ru,acc,none,0,11759,11.318989710009355,,,,
mera_rummlu_mc0,ru,acc,none,0,14012,23.10876391664288,,,,
include_base_44_russian,ru,acc,none,0,552,28.07971014492754,,,,
rublimp_sum_ll,ru,acc,none,0,45000,91.98888888888888,,,,
rucola_dev,ru,mcc,none,0,2787,0.2637654467725006,,,,
sberquad_dev,ru,f1,none,0,5036,7.848110874929681,,,,
rsg_danetqa,ru,acc,none,0,821,48.96467722289891,,,,
rsg_parus,ru,acc,none,0,100,64.0,,,,
rsg_rcb,ru,acc,none,0,220,32.27272727272727,,,,
rsg_russe,ru,acc,none,0,8505,38.506760728982954,,,,
rsg_rwsd,ru,acc,none,0,204,51.470588235294116,,,,
rsg_terra,ru,acc,none,0,307,48.534201954397396,,,,
belebele_rus_Cyrl,ru,acc,none,0,900,24.88888888888889,,,,
xnli_ru,ru,acc,none,0,2490,39.75903614457831,,,,
xquad_ru,ru,f1,none,0,1190,2.6520583546919987,,,,
xwinograd_ru,ru,acc,none,0,315,54.6031746031746,,,,
xstorycloze_ru,ru,acc,none,0,1511,52.08471211118465,,,,
mgsm_native_cot_ru,ru,exact_match,flexible-extract,8,250,1.6,,,,
arc_ru,ru,acc_norm,none,0,1169,24.46535500427716,,,,
hellaswag_ru,ru,acc_norm,none,0,9272,29.227782571182054,,,,
truthfulqa_ru_mc2,ru,acc,none,0,788,47.53698298393998,,,,
global_piqa_completions_rus_cyrl,ru,acc_norm,none,0,100,64.0,,,,
|