Skip to content

[Bug]: Loading Kimi K3 layers is slow, and then Colibri stops doing anything. #748

Description

@brad-evony

Commit or version

release 1.4.0

Environment

system: core i9 10940x 256gb ram 4tb nvme ssd, windows 10 pro
running colibri in command prompt.

Reproduction steps

set OMP_NUM_THREADS=14
set COLI_MODEL=E:\AI-MODELS\KIMI-K3-MXFP4
python coli web --ram 242 --gpu none --ngen 512

Expected behavior

It is supposed to load the 93 layers within a reasonable time, then load the tokenizer, then open the browser page to begin chat functionality.

Actual behavior and logs

It is slow to load taking 40 minutes because it only uses one CPU thread out of 14. Then after it loads the tokenizer, it stops using the CPU and SSD, and just doesn't do anything. It never begins the chat or opens the browser window. It doesn't give any errors it just stops doing anything.

dashboard: http://127.0.0.1:8000/  (opens automatically when the engine is ready)
[K3] loaded layer 1/93 (57.0s, RSS 1.4 GB)
[K3] loaded layer 9/93 (270.8s, RSS 4.1 GB)
[K3] loaded layer 17/93 (483.2s, RSS 6.9 GB)
[K3] loaded layer 25/93 (694.8s, RSS 9.8 GB)
[K3] loaded layer 33/93 (906.6s, RSS 12.6 GB)
[K3] loaded layer 41/93 (1117.8s, RSS 15.5 GB)
[K3] loaded layer 49/93 (1329.3s, RSS 18.4 GB)
[K3] loaded layer 57/93 (1540.7s, RSS 21.2 GB)
[K3] loaded layer 65/93 (1752.1s, RSS 24.1 GB)
[K3] loaded layer 73/93 (1963.6s, RSS 26.9 GB)
[K3] loaded layer 81/93 (2175.4s, RSS 29.8 GB)
[K3] loaded layer 89/93 (2386.9s, RSS 32.6 GB)
[K3] init done in 2538.7s | 93 layers | expert cache 4/layer (17.5 MB/slot) | RSS 35.1 GB
[K3] tokenizer.json loaded (family=kimi)

Pressing CTRL-C gives the following message:

Traceback (most recent call last):
File "E:\AIPROGS2\colibri-v1.4.0-windows-x86_64\coli", line 1249, in
main()
File "E:\AIPROGS2\colibri-v1.4.0-windows-x86_64\coli", line 1244, in main
if handler: sys.exit(handler(a) or 0)
File "E:\AIPROGS2\colibri-v1.4.0-windows-x86_64\coli", line 1063, in cmd_web
cmd_serve(a)
File "E:\AIPROGS2\colibri-v1.4.0-windows-x86_64\coli", line 990, in cmd_serve
openai_server.serve(a.model,a.host,a.port,model_id,a.api_key,
File "E:\AIPROGS2\colibri-v1.4.0-windows-x86_64\openai_server.py", line 2374, in serve
runtime = Engine(engine,model,cap,max_tokens,env,kv_slots)
File "E:\AIPROGS2\colibri-v1.4.0-windows-x86_64\openai_server.py", line 1223, in init
read_engine_turn(self.process.stdout, READY, lambda _: None)
File "E:\AIPROGS2\colibri-v1.4.0-windows-x86_64\openai_server.py", line 1128, in read_engine_turn
byte = stream.read(1)
KeyboardInterrupt

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDifetto verificato nel codicemodel-supportSupporto a nuovi modelliperformanceVelocità / tok-s / ottimizzazioni

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions