Repository navigation
Conversation
a9af0e1 to
0a68f9b
Compare
Can this made to work without ram caching? |
|
I tested The existing Prometheus serializer uses the stream's default six significant digits. Setting its precision to With that patch, all six tested native cases pass: restart, partial prefix match, no match, RAM-first reuse, RAM eviction to disk, and truncated-file rejection. Five test bodies are unchanged; for the eviction case I increased the fixture's RAM limit from 1 MiB to 64 MiB so it holds one Qwen KV state (about 55 MiB), rather than the tiny test model's state. No assertions were relaxed. I did not run the LoRA case. This is a metrics precision issue, not evidence of corrupt cache data. CPU-only execution, real local HTTP requests, no model download. The upstream fake-timing test setting is retained, so these are correctness checks rather than performance measurements. AI assistance was used to prepare the validation and patch. Evidence and reproduction: https://gist.github.com/mercant1982/4d666a9a6f8a04fe75f769015957630c |
hmm no, basically anything need to be copied to ram first then to disk. but we can improve it in the future |
I hope it's ok to ask here: what's the smallest |
|
I believe we will eventually figure out how to handle this plus but it's not the priority of this PR: I'm keeping changes here as minimal as possible |
|
Overview
Stacked on top #32154
Supersede #28092
Implement disk cache with running hash
TODO:
Requirements