Repository navigation
dgx-spark: P2, a unified machine plans against one pool; the census reads an integrated device's room from MemAvailable - #16
juliankang4 wants to merge 2 commits into
Conversation
5f4b44d to
10b6097
Compare
10b6097 to
253669b
Compare
midagedev
left a comment
There was a problem hiding this comment.
Thank you. On a card with its own memory nothing moves; we checked each hunk. The pool sum is right in its main terms. Four things before we land it:
crates/model/src/arch/glm5next/place.rs:458:checked(plan)does not passfrontto the pool check. Only the NextN path (:796) passes it, so a GLM plan without the draft can exceed the pool by the front.crates/model/src/arch/qwen35moe/place.rs:485: theExperts::Hostarm (plan_host_routed) dropsreserve. The MTP draft and theplan_with_slotsrows then missHostNeed::cards.- Four load-time fits still refuse on
Gpu::mem_info, which leaves out page cache on GB10:gpu-glm5next/src/prefill.rs:1413,gpu-mimo2/src/body.rs:1025,gpu-mimo2/src/prefill.rs:525,gpu-deepseek41/src/chain/attn/batch.rs:669. Please move them toalloc_room, or list them in the description as left out. The description now says the other users are gate deltas and the V4.1 draft fit. - Tests for the hunks no test holds: the context self-cost path with the real
CONTEXT(512 MiB) againstCONTEXT_SELF,Machine::whole_card,unified_of/host_of, and a caller that passes bytes toviolations_beside. One red per removed term is enough.
Smaller: on an integrated device with no free reading, host_of falls back to this workstation's host(). A named error is better there, even though no path reaches it today.
… pool invariant as #16 builds it, above the pool the card computes the NVMe tier (section 7, with its read-rate rule), several Sparks ×2/×4 (section 8: three splits, seven scaling criteria held by a placement unit gate at N = 1, 2, 4), phases P4 and P5, answers 10–14, the published reference sets Reviewed by a Claude Fable round against #13, #16 and the code; its findings are applied. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
One more line for #16, from our multi-node design (section 8 of |
…esign: sourced link facts (×2 direct, ×3 ring, ×4 switch; no GPUDirect RDMA on GB10), Machine { nodes, fabric } with #16's pool as nodes[0], derived bands per split at N = 1, 2, 4, the recommendation ((a) star for one request, (b) as a second mode), transport, one criteria list held by nodes_scale, the contributor's first measurements; section 3.3's copy sites re-read at cce176c
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rror (design S); swiglu and dot_f32 without AVX2 keep the kernels' bits supports is has_kernel off x86_64, so fuses admits the host union's stacks and the matmul dispatch's rows there. Tile, r8 and row-lane calls keep has_features, false off x86_64, and take the scalar paths they already have; the union's r8 cost asks has_tile(Q3_K), as its siblings do, so a scalar r8 group costs its bytes once a column. swiglu and swiglu_clamp without AVX2+FMA ran silu through libm's exp, one ulp off ik's v_expf on some inputs (swiglu_clamp_matches_ik_rule); they take expf_ik_scalar, v_expf's bits, as the card rule's swiglu does. dot_f32 without AVX2+FMA returned None and its callers summed left to right, 3.8e-6 off the router pin in tests/moe.rs; it runs the kernel's eight lanes one value at a time. quantize_col_random_bit_identical, hw_v_expf_equals_expf_ik_over_f32_range and hw_card_swiglu_clamp_scalar_matches_avx2 only compare an AVX2 path with its mirror, so they are x86_64-only. hw_union_q6_k_down_matches_per_column names the row lanes a CPU lacks after its values instead of passing.
…us reads an integrated device's room as the host's On an integrated device cuMemGetInfo leaves out the page cache the kernel hands back to a device allocation, so the census read far less than a load can take: 45.5 GB free on a 128 GB DGX Spark with about 50 GB in page cache, and the Qwen3 seat cut its default context to 253,952 positions. census reads CU_DEVICE_ATTRIBUTE_INTEGRATED, and on such a device it takes the host's room (host_available: MemAvailable and the cgroup levels) on the primary context instead. Gpu::alloc_room gives the same reading to the load-time fits that refuse an allocation before making it (the qwen35moe ubatch arena, the GLM and MiMo prompt groups' units, MiMo's resident sequence stores, V4.1's batch attention buffers) and to the GLM and MiMo prompt_bytes reports of what those units came out of. What measures device bytes keeps cuMemGetInfo (Gpu::mem_info), and so does the XStream ring, which sizes itself to what is free. Machine gains unified: Option<UnifiedPool>, the pool of this process's node, from the card spec (workstation::unified_of) in plan_on, tiered and the qwen3moe and qwen35moe machines; there the host is the pool, with no OS reserve (host_of). An integrated spec with no free reading panics there by name. Every other machine gets unified: None, so no plan on a card with memory of its own moves. On one pool each side may fit its own figure while both read the same bytes, so the sum is held once: - Plan::violations: PoolOver holds the cards' totals with their margins, re-derived from the rows, and the host's whole need (the NVMe split's arena and window too) to the pool. violations_beside (checked_beside where a family checks the plan whole) adds what a maker holds beside the plan; the qwen35moe MTP draft, the GLM prompt front and the GLM NextN draft with its arena pass theirs. The NextN plan checks the host against its own bound, as violations does, so a plan past the pool is refused once. - HostNeed gains cards (HostTotals::pool_card_bytes): the cards' share of the pool, with the reserve the maker kept beside the plan, under the expert rule or with every routed expert on the host (plan_host_routed_reserving). The plan's host headroom, the load's host check before any upload, the residency rules' room, the prompt cache's default and the NVMe split all leave the cards their share. - A whole load has no host plan: Machine::whole_card sizes it with the host's reserves on the card, so the qwen3 seat's whole fit counts the checkpoints its sequences pin. a_unified_pool_holds_card_and_host_together pins the sum term by term and the host headroom to the byte, on a context term below CONTEXT_SELF and on CONTEXT; an_integrated_card_plans_against_one_pool pins unified_of, host_of and whole_card on a census device, an_integrated_card_with_no_reading_has_no_pool the panic; a_drafted_plan_on_one_pool_counts_the_draft_once (qwen35moe MTP, both expert rules) and slot_plans_on_one_pool_count_the_bytes_beside_once (GLM, with and without NextN) hold a plan at a pool of exactly the need its host headroom counts and refuse it once, naming the bytes beside the plan, one byte under. The levers row of BLOOMERY_HOST_ROOM names the census and the load-time allocation fits among its readers. tools/unsafe-ratchet.txt: gpu 1658 -> 1659 blocks for the census's attribute read, with its PIN line.
253669b to
45b002c
Compare
|
Thanks for going through every hunk. All four points and the smaller one are fixed in the P2 commit (now
Smaller:
The GLM test also found one more problem. On one pool, On the P2 tape (answer 14), before you record it: the Spark does not give the A6000's bits. With bartowski's On the DGX Spark container, |
|
Thank you very much, Julian. This is careful work, and it helps the project a lot. You fixed every point, added the tests with FAIL-first, and found the double refusal in Your three questions:
#15 lands first with our gate run. I am reviewing |
|
Thank you for the answers, and for landing #15. I recorded the P2 tape on the Spark. Each request of
I ran each file twice.
The The P2 commit applies to today's main as it is ( Q4_K_M rows.json[
{
"suite": "en",
"id": "route-01",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"department\":{\"type\":\"choice\",\"choice\":\"technical\",\"confidence\":0.9095,\"probabilities\":{\"billing\":0.0453,\"technical\":0.9547}},\"urgency\":{\"type\":\"score\",\"score\":1.7756,\"confidence\":0.6634,\"legend\":{\"0\":\"Can wait\",\"1\":\"This week\",\"2\":\"Today\"},\"probabilities\":{\"0\":0.0741,\"1\":0.0761,\"2\":0.8498}},\"outage\":{\"type\":\"noul\",\"noul\":0.85}},\"usage\":{\"input_tokens\":300,\"output_tokens\":0},\"timings\":{\"prompt_n\":300,\"prompt_ms\":152.721023,\"head_ms\":48.428737999999996,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"department": {
"type": "choice",
"choice": "technical",
"confidence": 0.9095,
"probabilities": {
"billing": 0.0453,
"technical": 0.9547
}
},
"urgency": {
"type": "score",
"score": 1.7756,
"confidence": 0.6634,
"legend": {
"0": "Can wait",
"1": "This week",
"2": "Today"
},
"probabilities": {
"0": 0.0741,
"1": 0.0761,
"2": 0.8498
}
},
"outage": {
"type": "noul",
"noul": 0.85
}
},
"usage": {
"input_tokens": 300,
"output_tokens": 0
},
"timings": {
"prompt_n": 300,
"prompt_ms": 152.721023,
"head_ms": 48.428737999999996,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "invoice-02",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"status\":{\"type\":\"choice\",\"choice\":\"overdue\",\"confidence\":0.9624,\"probabilities\":{\"paid\":0.016,\"overdue\":0.975,\"draft\":0.009}},\"large\":{\"type\":\"noul\",\"noul\":0.9748}},\"usage\":{\"input_tokens\":260,\"output_tokens\":0},\"timings\":{\"prompt_n\":260,\"prompt_ms\":143.75174900000002,\"head_ms\":55.165801,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"status": {
"type": "choice",
"choice": "overdue",
"confidence": 0.9624,
"probabilities": {
"paid": 0.016,
"overdue": 0.975,
"draft": 0.009
}
},
"large": {
"type": "noul",
"noul": 0.9748
}
},
"usage": {
"input_tokens": 260,
"output_tokens": 0
},
"timings": {
"prompt_n": 260,
"prompt_ms": 143.75174900000002,
"head_ms": 55.165801,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "tool-03",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"tool\":{\"type\":\"choice\",\"choice\":\"web_search\",\"confidence\":0.9755,\"probabilities\":{\"web_search\":0.9817,\"calculator\":0.0038,\"calendar\":0.0063,\"none\":0.0082}}},\"usage\":{\"input_tokens\":188,\"output_tokens\":0},\"timings\":{\"prompt_n\":188,\"prompt_ms\":94.000865,\"head_ms\":54.449384,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"tool": {
"type": "choice",
"choice": "web_search",
"confidence": 0.9755,
"probabilities": {
"web_search": 0.9817,
"calculator": 0.0038,
"calendar": 0.0063,
"none": 0.0082
}
}
},
"usage": {
"input_tokens": 188,
"output_tokens": 0
},
"timings": {
"prompt_n": 188,
"prompt_ms": 94.000865,
"head_ms": 54.449384,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "guard-04",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"injection\":{\"type\":\"noul\",\"noul\":0.9529},\"severity\":{\"type\":\"score\",\"score\":1.7826,\"confidence\":0.6739,\"legend\":{\"0\":\"Harmless\",\"1\":\"Suspicious\",\"2\":\"Malicious\"},\"probabilities\":{\"0\":0.055,\"1\":0.1073,\"2\":0.8376}}},\"usage\":{\"input_tokens\":233,\"output_tokens\":0},\"timings\":{\"prompt_n\":233,\"prompt_ms\":127.799924,\"head_ms\":50.373267999999996,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"injection": {
"type": "noul",
"noul": 0.9529
},
"severity": {
"type": "score",
"score": 1.7826,
"confidence": 0.6739,
"legend": {
"0": "Harmless",
"1": "Suspicious",
"2": "Malicious"
},
"probabilities": {
"0": 0.055,
"1": 0.1073,
"2": 0.8376
}
}
},
"usage": {
"input_tokens": 233,
"output_tokens": 0
},
"timings": {
"prompt_n": 233,
"prompt_ms": 127.799924,
"head_ms": 50.373267999999996,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "review-05",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"risk\":{\"type\":\"score\",\"score\":0.5254,\"confidence\":0.212,\"legend\":{\"0\":\"Low\",\"1\":\"Medium\",\"2\":\"High\"},\"probabilities\":{\"0\":0.5275,\"1\":0.4197,\"2\":0.0529}},\"needs_human\":{\"type\":\"noul\",\"noul\":0.2522}},\"usage\":{\"input_tokens\":252,\"output_tokens\":0},\"timings\":{\"prompt_n\":252,\"prompt_ms\":137.546638,\"head_ms\":31.982449000000003,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"risk": {
"type": "score",
"score": 0.5254,
"confidence": 0.212,
"legend": {
"0": "Low",
"1": "Medium",
"2": "High"
},
"probabilities": {
"0": 0.5275,
"1": 0.4197,
"2": 0.0529
}
},
"needs_human": {
"type": "noul",
"noul": 0.2522
}
},
"usage": {
"input_tokens": 252,
"output_tokens": 0
},
"timings": {
"prompt_n": 252,
"prompt_ms": 137.546638,
"head_ms": 31.982449000000003,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "ko-06",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"intent\":{\"type\":\"choice\",\"choice\":\"refund\",\"confidence\":0.8255,\"probabilities\":{\"refund\":0.8691,\"tracking\":0.0192,\"cancel\":0.1058,\"other\":0.0059}},\"angry\":{\"type\":\"noul\",\"noul\":0.7207}},\"usage\":{\"input_tokens\":266,\"output_tokens\":0},\"timings\":{\"prompt_n\":266,\"prompt_ms\":146.069111,\"head_ms\":46.658,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"intent": {
"type": "choice",
"choice": "refund",
"confidence": 0.8255,
"probabilities": {
"refund": 0.8691,
"tracking": 0.0192,
"cancel": 0.1058,
"other": 0.0059
}
},
"angry": {
"type": "noul",
"noul": 0.7207
}
},
"usage": {
"input_tokens": 266,
"output_tokens": 0
},
"timings": {
"prompt_n": 266,
"prompt_ms": 146.069111,
"head_ms": 46.658,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "sentiment-07",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"sentiment\":{\"type\":\"choice\",\"choice\":\"mixed\",\"confidence\":0.3614,\"probabilities\":{\"positive\":0.374,\"negative\":0.0517,\"mixed\":0.5743}},\"bug_report\":{\"type\":\"noul\",\"noul\":0.488}},\"usage\":{\"input_tokens\":239,\"output_tokens\":0},\"timings\":{\"prompt_n\":239,\"prompt_ms\":127.16270800000001,\"head_ms\":48.09773,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"sentiment": {
"type": "choice",
"choice": "mixed",
"confidence": 0.3614,
"probabilities": {
"positive": 0.374,
"negative": 0.0517,
"mixed": 0.5743
}
},
"bug_report": {
"type": "noul",
"noul": 0.488
}
},
"usage": {
"input_tokens": 239,
"output_tokens": 0
},
"timings": {
"prompt_n": 239,
"prompt_ms": 127.16270800000001,
"head_ms": 48.09773,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "long-08",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"failed\":{\"type\":\"noul\",\"noul\":0.9616},\"stage\":{\"type\":\"choice\",\"choice\":\"deploy\",\"confidence\":0.9121,\"probabilities\":{\"build\":0.0163,\"test\":0.0146,\"deploy\":0.9341,\"none\":0.035}}},\"usage\":{\"input_tokens\":8446,\"output_tokens\":0},\"timings\":{\"prompt_n\":8446,\"prompt_ms\":4311.81312,\"head_ms\":193.732089,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"failed": {
"type": "noul",
"noul": 0.9616
},
"stage": {
"type": "choice",
"choice": "deploy",
"confidence": 0.9121,
"probabilities": {
"build": 0.0163,
"test": 0.0146,
"deploy": 0.9341,
"none": 0.035
}
}
},
"usage": {
"input_tokens": 8446,
"output_tokens": 0
},
"timings": {
"prompt_n": 8446,
"prompt_ms": 4311.81312,
"head_ms": 193.732089,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-cs-01",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"부서\":{\"type\":\"choice\",\"choice\":\"결제\",\"confidence\":0.8429,\"probabilities\":{\"결제\":0.8822,\"배송\":0.0151,\"기술\":0.042,\"기타\":0.0607}},\"긴급도\":{\"type\":\"score\",\"score\":1.5064,\"confidence\":0.2597,\"legend\":{\"0\":\"나중에\",\"1\":\"오늘 중\",\"2\":\"지금 당장\"},\"probabilities\":{\"0\":0.0192,\"1\":0.4553,\"2\":0.5256}},\"환불요청\":{\"type\":\"noul\",\"noul\":0.0068}},\"usage\":{\"input_tokens\":380,\"output_tokens\":0},\"timings\":{\"prompt_n\":380,\"prompt_ms\":182.522797,\"head_ms\":35.137157,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"부서": {
"type": "choice",
"choice": "결제",
"confidence": 0.8429,
"probabilities": {
"결제": 0.8822,
"배송": 0.0151,
"기술": 0.042,
"기타": 0.0607
}
},
"긴급도": {
"type": "score",
"score": 1.5064,
"confidence": 0.2597,
"legend": {
"0": "나중에",
"1": "오늘 중",
"2": "지금 당장"
},
"probabilities": {
"0": 0.0192,
"1": 0.4553,
"2": 0.5256
}
},
"환불요청": {
"type": "noul",
"noul": 0.0068
}
},
"usage": {
"input_tokens": 380,
"output_tokens": 0
},
"timings": {
"prompt_n": 380,
"prompt_ms": 182.522797,
"head_ms": 35.137157,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-guard-02",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"인젝션\":{\"type\":\"noul\",\"noul\":0.8098},\"위험도\":{\"type\":\"score\",\"score\":1.8795,\"confidence\":0.8192,\"legend\":{\"0\":\"무해함\",\"1\":\"의심스러움\",\"2\":\"악의적\"},\"probabilities\":{\"0\":0.0308,\"1\":0.0589,\"2\":0.9103}}},\"usage\":{\"input_tokens\":258,\"output_tokens\":0},\"timings\":{\"prompt_n\":258,\"prompt_ms\":145.176391,\"head_ms\":54.328824,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"인젝션": {
"type": "noul",
"noul": 0.8098
},
"위험도": {
"type": "score",
"score": 1.8795,
"confidence": 0.8192,
"legend": {
"0": "무해함",
"1": "의심스러움",
"2": "악의적"
},
"probabilities": {
"0": 0.0308,
"1": 0.0589,
"2": 0.9103
}
}
},
"usage": {
"input_tokens": 258,
"output_tokens": 0
},
"timings": {
"prompt_n": 258,
"prompt_ms": 145.176391,
"head_ms": 54.328824,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-tool-03",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"도구\":{\"type\":\"choice\",\"choice\":\"캘린더\",\"confidence\":0.904,\"probabilities\":{\"웹검색\":0.0173,\"계산기\":0.026,\"캘린더\":0.928,\"직접답변\":0.0287}}},\"usage\":{\"input_tokens\":220,\"output_tokens\":0},\"timings\":{\"prompt_n\":220,\"prompt_ms\":125.30485,\"head_ms\":47.302849,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"도구": {
"type": "choice",
"choice": "캘린더",
"confidence": 0.904,
"probabilities": {
"웹검색": 0.0173,
"계산기": 0.026,
"캘린더": 0.928,
"직접답변": 0.0287
}
}
},
"usage": {
"input_tokens": 220,
"output_tokens": 0
},
"timings": {
"prompt_n": 220,
"prompt_ms": 125.30485,
"head_ms": 47.302849,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-review-04",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"감성\":{\"type\":\"choice\",\"choice\":\"혼합\",\"confidence\":0.6667,\"probabilities\":{\"긍정\":0.0348,\"부정\":0.1874,\"혼합\":0.7778}},\"구성품누락\":{\"type\":\"noul\",\"noul\":0.9657}},\"usage\":{\"input_tokens\":270,\"output_tokens\":0},\"timings\":{\"prompt_n\":270,\"prompt_ms\":147.072456,\"head_ms\":59.239374,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"감성": {
"type": "choice",
"choice": "혼합",
"confidence": 0.6667,
"probabilities": {
"긍정": 0.0348,
"부정": 0.1874,
"혼합": 0.7778
}
},
"구성품누락": {
"type": "noul",
"noul": 0.9657
}
},
"usage": {
"input_tokens": 270,
"output_tokens": 0
},
"timings": {
"prompt_n": 270,
"prompt_ms": 147.072456,
"head_ms": 59.239374,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-invoice-05",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"상태\":{\"type\":\"choice\",\"choice\":\"연체\",\"confidence\":0.9372,\"probabilities\":{\"완납\":0.0149,\"연체\":0.9581,\"대기\":0.027}},\"고액\":{\"type\":\"noul\",\"noul\":0.9744}},\"usage\":{\"input_tokens\":307,\"output_tokens\":0},\"timings\":{\"prompt_n\":307,\"prompt_ms\":156.89909,\"head_ms\":58.279692000000004,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"상태": {
"type": "choice",
"choice": "연체",
"confidence": 0.9372,
"probabilities": {
"완납": 0.0149,
"연체": 0.9581,
"대기": 0.027
}
},
"고액": {
"type": "noul",
"noul": 0.9744
}
},
"usage": {
"input_tokens": 307,
"output_tokens": 0
},
"timings": {
"prompt_n": 307,
"prompt_ms": 156.89909,
"head_ms": 58.279692000000004,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-mail-06",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"의도\":{\"type\":\"choice\",\"choice\":\"일정변경\",\"confidence\":0.9644,\"probabilities\":{\"일정변경\":0.9733,\"취소\":0.0079,\"정보요청\":0.008,\"기타\":0.0108}},\"답장필요\":{\"type\":\"noul\",\"noul\":0.8471}},\"usage\":{\"input_tokens\":308,\"output_tokens\":0},\"timings\":{\"prompt_n\":308,\"prompt_ms\":154.32647999999998,\"head_ms\":55.837306000000005,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"의도": {
"type": "choice",
"choice": "일정변경",
"confidence": 0.9644,
"probabilities": {
"일정변경": 0.9733,
"취소": 0.0079,
"정보요청": 0.008,
"기타": 0.0108
}
},
"답장필요": {
"type": "noul",
"noul": 0.8471
}
},
"usage": {
"input_tokens": 308,
"output_tokens": 0
},
"timings": {
"prompt_n": 308,
"prompt_ms": 154.32647999999998,
"head_ms": 55.837306000000005,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-long-07",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q4_K_M.gguf\",\"answers\":{\"원인\":{\"type\":\"choice\",\"choice\":\"배포설정\",\"confidence\":0.9714,\"probabilities\":{\"데이터베이스\":0.0082,\"네트워크\":0.0054,\"배포설정\":0.9786,\"외부API\":0.0078}},\"해결됨\":{\"type\":\"noul\",\"noul\":0.8724},\"심각도\":{\"type\":\"score\",\"score\":1.764,\"confidence\":0.646,\"legend\":{\"0\":\"영향 없음\",\"1\":\"일부 영향\",\"2\":\"큰 영향\"},\"probabilities\":{\"0\":0.0474,\"1\":0.1411,\"2\":0.8115}}},\"usage\":{\"input_tokens\":4067,\"output_tokens\":0},\"timings\":{\"prompt_n\":4067,\"prompt_ms\":2066.151709,\"head_ms\":147.333352,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q4_K_M.gguf",
"answers": {
"원인": {
"type": "choice",
"choice": "배포설정",
"confidence": 0.9714,
"probabilities": {
"데이터베이스": 0.0082,
"네트워크": 0.0054,
"배포설정": 0.9786,
"외부API": 0.0078
}
},
"해결됨": {
"type": "noul",
"noul": 0.8724
},
"심각도": {
"type": "score",
"score": 1.764,
"confidence": 0.646,
"legend": {
"0": "영향 없음",
"1": "일부 영향",
"2": "큰 영향"
},
"probabilities": {
"0": 0.0474,
"1": 0.1411,
"2": 0.8115
}
}
},
"usage": {
"input_tokens": 4067,
"output_tokens": 0
},
"timings": {
"prompt_n": 4067,
"prompt_ms": 2066.151709,
"head_ms": 147.333352,
"cache_n": 0
}
}
}
]Q3_K_S rows.json[
{
"suite": "en",
"id": "route-01",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"department\":{\"type\":\"choice\",\"choice\":\"technical\",\"confidence\":0.9219,\"probabilities\":{\"billing\":0.0391,\"technical\":0.9609}},\"urgency\":{\"type\":\"score\",\"score\":1.8135,\"confidence\":0.7203,\"legend\":{\"0\":\"Can wait\",\"1\":\"This week\",\"2\":\"Today\"},\"probabilities\":{\"0\":0.0544,\"1\":0.0776,\"2\":0.868}},\"outage\":{\"type\":\"noul\",\"noul\":0.7749}},\"usage\":{\"input_tokens\":300,\"output_tokens\":0},\"timings\":{\"prompt_n\":300,\"prompt_ms\":138.192971,\"head_ms\":53.804639,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"department": {
"type": "choice",
"choice": "technical",
"confidence": 0.9219,
"probabilities": {
"billing": 0.0391,
"technical": 0.9609
}
},
"urgency": {
"type": "score",
"score": 1.8135,
"confidence": 0.7203,
"legend": {
"0": "Can wait",
"1": "This week",
"2": "Today"
},
"probabilities": {
"0": 0.0544,
"1": 0.0776,
"2": 0.868
}
},
"outage": {
"type": "noul",
"noul": 0.7749
}
},
"usage": {
"input_tokens": 300,
"output_tokens": 0
},
"timings": {
"prompt_n": 300,
"prompt_ms": 138.192971,
"head_ms": 53.804639,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "invoice-02",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"status\":{\"type\":\"choice\",\"choice\":\"overdue\",\"confidence\":0.9658,\"probabilities\":{\"paid\":0.0143,\"overdue\":0.9772,\"draft\":0.0085}},\"large\":{\"type\":\"noul\",\"noul\":0.9705}},\"usage\":{\"input_tokens\":260,\"output_tokens\":0},\"timings\":{\"prompt_n\":260,\"prompt_ms\":128.425163,\"head_ms\":50.264876,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"status": {
"type": "choice",
"choice": "overdue",
"confidence": 0.9658,
"probabilities": {
"paid": 0.0143,
"overdue": 0.9772,
"draft": 0.0085
}
},
"large": {
"type": "noul",
"noul": 0.9705
}
},
"usage": {
"input_tokens": 260,
"output_tokens": 0
},
"timings": {
"prompt_n": 260,
"prompt_ms": 128.425163,
"head_ms": 50.264876,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "tool-03",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"tool\":{\"type\":\"choice\",\"choice\":\"web_search\",\"confidence\":0.9731,\"probabilities\":{\"web_search\":0.9798,\"calculator\":0.0042,\"calendar\":0.0069,\"none\":0.0091}}},\"usage\":{\"input_tokens\":188,\"output_tokens\":0},\"timings\":{\"prompt_n\":188,\"prompt_ms\":88.19472,\"head_ms\":57.652451,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"tool": {
"type": "choice",
"choice": "web_search",
"confidence": 0.9731,
"probabilities": {
"web_search": 0.9798,
"calculator": 0.0042,
"calendar": 0.0069,
"none": 0.0091
}
}
},
"usage": {
"input_tokens": 188,
"output_tokens": 0
},
"timings": {
"prompt_n": 188,
"prompt_ms": 88.19472,
"head_ms": 57.652451,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "guard-04",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"injection\":{\"type\":\"noul\",\"noul\":0.9477},\"severity\":{\"type\":\"score\",\"score\":1.7309,\"confidence\":0.5963,\"legend\":{\"0\":\"Harmless\",\"1\":\"Suspicious\",\"2\":\"Malicious\"},\"probabilities\":{\"0\":0.0619,\"1\":0.1452,\"2\":0.7928}}},\"usage\":{\"input_tokens\":233,\"output_tokens\":0},\"timings\":{\"prompt_n\":233,\"prompt_ms\":114.69756000000001,\"head_ms\":57.318405000000006,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"injection": {
"type": "noul",
"noul": 0.9477
},
"severity": {
"type": "score",
"score": 1.7309,
"confidence": 0.5963,
"legend": {
"0": "Harmless",
"1": "Suspicious",
"2": "Malicious"
},
"probabilities": {
"0": 0.0619,
"1": 0.1452,
"2": 0.7928
}
}
},
"usage": {
"input_tokens": 233,
"output_tokens": 0
},
"timings": {
"prompt_n": 233,
"prompt_ms": 114.69756000000001,
"head_ms": 57.318405000000006,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "review-05",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"risk\":{\"type\":\"score\",\"score\":0.5721,\"confidence\":0.1419,\"legend\":{\"0\":\"Low\",\"1\":\"Medium\",\"2\":\"High\"},\"probabilities\":{\"0\":0.4862,\"1\":0.4556,\"2\":0.0582}},\"needs_human\":{\"type\":\"noul\",\"noul\":0.3023}},\"usage\":{\"input_tokens\":252,\"output_tokens\":0},\"timings\":{\"prompt_n\":252,\"prompt_ms\":121.58845,\"head_ms\":60.43481,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"risk": {
"type": "score",
"score": 0.5721,
"confidence": 0.1419,
"legend": {
"0": "Low",
"1": "Medium",
"2": "High"
},
"probabilities": {
"0": 0.4862,
"1": 0.4556,
"2": 0.0582
}
},
"needs_human": {
"type": "noul",
"noul": 0.3023
}
},
"usage": {
"input_tokens": 252,
"output_tokens": 0
},
"timings": {
"prompt_n": 252,
"prompt_ms": 121.58845,
"head_ms": 60.43481,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "ko-06",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"intent\":{\"type\":\"choice\",\"choice\":\"refund\",\"confidence\":0.8353,\"probabilities\":{\"refund\":0.8765,\"tracking\":0.0207,\"cancel\":0.0953,\"other\":0.0076}},\"angry\":{\"type\":\"noul\",\"noul\":0.6483}},\"usage\":{\"input_tokens\":266,\"output_tokens\":0},\"timings\":{\"prompt_n\":266,\"prompt_ms\":131.35520300000002,\"head_ms\":56.75479,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"intent": {
"type": "choice",
"choice": "refund",
"confidence": 0.8353,
"probabilities": {
"refund": 0.8765,
"tracking": 0.0207,
"cancel": 0.0953,
"other": 0.0076
}
},
"angry": {
"type": "noul",
"noul": 0.6483
}
},
"usage": {
"input_tokens": 266,
"output_tokens": 0
},
"timings": {
"prompt_n": 266,
"prompt_ms": 131.35520300000002,
"head_ms": 56.75479,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "sentiment-07",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"sentiment\":{\"type\":\"choice\",\"choice\":\"mixed\",\"confidence\":0.244,\"probabilities\":{\"positive\":0.445,\"negative\":0.059,\"mixed\":0.496}},\"bug_report\":{\"type\":\"noul\",\"noul\":0.4877}},\"usage\":{\"input_tokens\":239,\"output_tokens\":0},\"timings\":{\"prompt_n\":239,\"prompt_ms\":115.450118,\"head_ms\":54.000335,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"sentiment": {
"type": "choice",
"choice": "mixed",
"confidence": 0.244,
"probabilities": {
"positive": 0.445,
"negative": 0.059,
"mixed": 0.496
}
},
"bug_report": {
"type": "noul",
"noul": 0.4877
}
},
"usage": {
"input_tokens": 239,
"output_tokens": 0
},
"timings": {
"prompt_n": 239,
"prompt_ms": 115.450118,
"head_ms": 54.000335,
"cache_n": 0
}
}
},
{
"suite": "en",
"id": "long-08",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"failed\":{\"type\":\"noul\",\"noul\":0.9612},\"stage\":{\"type\":\"choice\",\"choice\":\"deploy\",\"confidence\":0.8909,\"probabilities\":{\"build\":0.0182,\"test\":0.0174,\"deploy\":0.9181,\"none\":0.0462}}},\"usage\":{\"input_tokens\":8446,\"output_tokens\":0},\"timings\":{\"prompt_n\":8446,\"prompt_ms\":3723.3182,\"head_ms\":211.238851,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"failed": {
"type": "noul",
"noul": 0.9612
},
"stage": {
"type": "choice",
"choice": "deploy",
"confidence": 0.8909,
"probabilities": {
"build": 0.0182,
"test": 0.0174,
"deploy": 0.9181,
"none": 0.0462
}
}
},
"usage": {
"input_tokens": 8446,
"output_tokens": 0
},
"timings": {
"prompt_n": 8446,
"prompt_ms": 3723.3182,
"head_ms": 211.238851,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-cs-01",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"부서\":{\"type\":\"choice\",\"choice\":\"결제\",\"confidence\":0.7998,\"probabilities\":{\"결제\":0.8498,\"배송\":0.0182,\"기술\":0.0579,\"기타\":0.074}},\"긴급도\":{\"type\":\"score\",\"score\":1.4785,\"confidence\":0.2177,\"legend\":{\"0\":\"나중에\",\"1\":\"오늘 중\",\"2\":\"지금 당장\"},\"probabilities\":{\"0\":0.0232,\"1\":0.475,\"2\":0.5017}},\"환불요청\":{\"type\":\"noul\",\"noul\":0.015}},\"usage\":{\"input_tokens\":380,\"output_tokens\":0},\"timings\":{\"prompt_n\":380,\"prompt_ms\":163.302448,\"head_ms\":61.392713,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"부서": {
"type": "choice",
"choice": "결제",
"confidence": 0.7998,
"probabilities": {
"결제": 0.8498,
"배송": 0.0182,
"기술": 0.0579,
"기타": 0.074
}
},
"긴급도": {
"type": "score",
"score": 1.4785,
"confidence": 0.2177,
"legend": {
"0": "나중에",
"1": "오늘 중",
"2": "지금 당장"
},
"probabilities": {
"0": 0.0232,
"1": 0.475,
"2": 0.5017
}
},
"환불요청": {
"type": "noul",
"noul": 0.015
}
},
"usage": {
"input_tokens": 380,
"output_tokens": 0
},
"timings": {
"prompt_n": 380,
"prompt_ms": 163.302448,
"head_ms": 61.392713,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-guard-02",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"인젝션\":{\"type\":\"noul\",\"noul\":0.8609},\"위험도\":{\"type\":\"score\",\"score\":1.8815,\"confidence\":0.8222,\"legend\":{\"0\":\"무해함\",\"1\":\"의심스러움\",\"2\":\"악의적\"},\"probabilities\":{\"0\":0.0239,\"1\":0.0707,\"2\":0.9054}}},\"usage\":{\"input_tokens\":258,\"output_tokens\":0},\"timings\":{\"prompt_n\":258,\"prompt_ms\":128.814416,\"head_ms\":61.937014999999995,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"인젝션": {
"type": "noul",
"noul": 0.8609
},
"위험도": {
"type": "score",
"score": 1.8815,
"confidence": 0.8222,
"legend": {
"0": "무해함",
"1": "의심스러움",
"2": "악의적"
},
"probabilities": {
"0": 0.0239,
"1": 0.0707,
"2": 0.9054
}
}
},
"usage": {
"input_tokens": 258,
"output_tokens": 0
},
"timings": {
"prompt_n": 258,
"prompt_ms": 128.814416,
"head_ms": 61.937014999999995,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-tool-03",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"도구\":{\"type\":\"choice\",\"choice\":\"캘린더\",\"confidence\":0.9088,\"probabilities\":{\"웹검색\":0.0168,\"계산기\":0.0244,\"캘린더\":0.9316,\"직접답변\":0.0272}}},\"usage\":{\"input_tokens\":220,\"output_tokens\":0},\"timings\":{\"prompt_n\":220,\"prompt_ms\":111.087225,\"head_ms\":56.641033,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"도구": {
"type": "choice",
"choice": "캘린더",
"confidence": 0.9088,
"probabilities": {
"웹검색": 0.0168,
"계산기": 0.0244,
"캘린더": 0.9316,
"직접답변": 0.0272
}
}
},
"usage": {
"input_tokens": 220,
"output_tokens": 0
},
"timings": {
"prompt_n": 220,
"prompt_ms": 111.087225,
"head_ms": 56.641033,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-review-04",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"감성\":{\"type\":\"choice\",\"choice\":\"혼합\",\"confidence\":0.7973,\"probabilities\":{\"긍정\":0.0421,\"부정\":0.093,\"혼합\":0.8649}},\"구성품누락\":{\"type\":\"noul\",\"noul\":0.9662}},\"usage\":{\"input_tokens\":270,\"output_tokens\":0},\"timings\":{\"prompt_n\":270,\"prompt_ms\":130.868457,\"head_ms\":56.705352,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"감성": {
"type": "choice",
"choice": "혼합",
"confidence": 0.7973,
"probabilities": {
"긍정": 0.0421,
"부정": 0.093,
"혼합": 0.8649
}
},
"구성품누락": {
"type": "noul",
"noul": 0.9662
}
},
"usage": {
"input_tokens": 270,
"output_tokens": 0
},
"timings": {
"prompt_n": 270,
"prompt_ms": 130.868457,
"head_ms": 56.705352,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-invoice-05",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"상태\":{\"type\":\"choice\",\"choice\":\"연체\",\"confidence\":0.9277,\"probabilities\":{\"완납\":0.0144,\"연체\":0.9518,\"대기\":0.0338}},\"고액\":{\"type\":\"noul\",\"noul\":0.9727}},\"usage\":{\"input_tokens\":307,\"output_tokens\":0},\"timings\":{\"prompt_n\":307,\"prompt_ms\":141.040471,\"head_ms\":58.084917,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"상태": {
"type": "choice",
"choice": "연체",
"confidence": 0.9277,
"probabilities": {
"완납": 0.0144,
"연체": 0.9518,
"대기": 0.0338
}
},
"고액": {
"type": "noul",
"noul": 0.9727
}
},
"usage": {
"input_tokens": 307,
"output_tokens": 0
},
"timings": {
"prompt_n": 307,
"prompt_ms": 141.040471,
"head_ms": 58.084917,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-mail-06",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"의도\":{\"type\":\"choice\",\"choice\":\"일정변경\",\"confidence\":0.9621,\"probabilities\":{\"일정변경\":0.9716,\"취소\":0.0088,\"정보요청\":0.0086,\"기타\":0.011}},\"답장필요\":{\"type\":\"noul\",\"noul\":0.7218}},\"usage\":{\"input_tokens\":308,\"output_tokens\":0},\"timings\":{\"prompt_n\":308,\"prompt_ms\":147.141973,\"head_ms\":30.580092999999998,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"의도": {
"type": "choice",
"choice": "일정변경",
"confidence": 0.9621,
"probabilities": {
"일정변경": 0.9716,
"취소": 0.0088,
"정보요청": 0.0086,
"기타": 0.011
}
},
"답장필요": {
"type": "noul",
"noul": 0.7218
}
},
"usage": {
"input_tokens": 308,
"output_tokens": 0
},
"timings": {
"prompt_n": 308,
"prompt_ms": 147.141973,
"head_ms": 30.580092999999998,
"cache_n": 0
}
}
},
{
"suite": "ko",
"id": "ko-long-07",
"raw": "{\"model\":\"Cloudflare_clef-flash-Q3_K_S.gguf\",\"answers\":{\"원인\":{\"type\":\"choice\",\"choice\":\"배포설정\",\"confidence\":0.9667,\"probabilities\":{\"데이터베이스\":0.0095,\"네트워크\":0.0065,\"배포설정\":0.9751,\"외부API\":0.009}},\"해결됨\":{\"type\":\"noul\",\"noul\":0.9052},\"심각도\":{\"type\":\"score\",\"score\":1.6056,\"confidence\":0.4083,\"legend\":{\"0\":\"영향 없음\",\"1\":\"일부 영향\",\"2\":\"큰 영향\"},\"probabilities\":{\"0\":0.0703,\"1\":0.2539,\"2\":0.6758}}},\"usage\":{\"input_tokens\":4067,\"output_tokens\":0},\"timings\":{\"prompt_n\":4067,\"prompt_ms\":1748.868218,\"head_ms\":144.981342,\"cache_n\":0}}",
"resp": {
"model": "Cloudflare_clef-flash-Q3_K_S.gguf",
"answers": {
"원인": {
"type": "choice",
"choice": "배포설정",
"confidence": 0.9667,
"probabilities": {
"데이터베이스": 0.0095,
"네트워크": 0.0065,
"배포설정": 0.9751,
"외부API": 0.009
}
},
"해결됨": {
"type": "noul",
"noul": 0.9052
},
"심각도": {
"type": "score",
"score": 1.6056,
"confidence": 0.4083,
"legend": {
"0": "영향 없음",
"1": "일부 영향",
"2": "큰 영향"
},
"probabilities": {
"0": 0.0703,
"1": 0.2539,
"2": 0.6758
}
}
},
"usage": {
"input_tokens": 4067,
"output_tokens": 0
},
"timings": {
"prompt_n": 4067,
"prompt_ms": 1748.868218,
"head_ms": 144.981342,
"cache_n": 0
}
}
}
] |
|
Thank you again for the Spark rows. They are complete (15 + 15 requests), and we will use them as the Spark's P2 tape. One more request, only if you have time. We would like to share the Spark progress, with credit to you. Could you record a toktape run on the Spark and publish it?
|
|
Three notes for the toktape run, from the toktape side:
toktape does not read GB10 memory yet (the cells are |
|
One more run request, when you have time. Our planner says one Spark holds Qwen3.8-Flash-Next
Please paste the |
|
Landed on main as 7507942, with your authorship. Thank you very much, Julian. The unified-pool plan is the base for every Spark run from here, and your 15 + 15 rows are its first evidence. The landing batch ran 72 gates on the fixture tier, all green. The other 61 run in the release batch. Three follow-ups are in our tracker, so nothing more is needed in this PR: tests for F4c, the memory guard on an integrated device, and the multi-node ring from section 8. I am closing this PR because the commit is on main through our merge train, not through the GitHub merge button. |
|
Thank you for landing it. Here are the Spark runs you asked for: the All of it ran on one DGX Spark (GB10, driver 595.84) with the same binary:
nvidia-smi and the hostTaken while
Qwen3.8-Flash-Next
|
| File | Flags | Prompt tokens | Prefill tok/s | Decode tok/s | Draft acceptance |
|---|---|---|---|---|---|
UD-Q3_K_XL |
none | 504 | 735.4 | 42.06 | 0.637 |
UD-Q3_K_XL |
none | 4089 | 1069.2 | 38.11 | 0.587 |
UD-Q3_K_XL |
--ctx-size 32768 |
504 | 757.3 | 40.92 | 0.623 |
UD-Q3_K_XL |
--ctx-size 32768 |
4089 | 1072.0 | 37.08 | 0.587 |
UD-Q4_K_XL |
none | 504 | 635.5 | 35.90 | 0.617 |
UD-Q4_K_XL |
none | 4089 | 1025.7 | 37.64 | 0.688 |
Decode with the draft on moves with acceptance, so the decode gap between the two files is less certain than the prefill gap.
Both files hold every routed expert on the GPU at their default context (host_experts=0 card_experts=24576), so on this Spark UD-Q4_K_XL also runs all on the GPU at the default.
One thing I did not expect: the smaller file gets the smaller default context. UD-Q3_K_XL lands at 2 × 18176 and UD-Q4_K_XL at 2 × 134400, both by rule=cache. As I read the qwen38 seat, the default shrinks the context until one session's state fits the prompt cache's default RAM (host_bound), and that RAM is what MemAvailable leaves past the plan's host need, taken at the context before the cut (margin_ctx=262144 a slot, two slots). That need comes out larger for UD-Q3_K_XL (123.48 GB against 116.39 GB), so its cache gets 0.82 GB against 4.36 GB. With UD-Q3_K_XL serving at the default, free -g still showed 49 GiB available. I have not found which term of the need makes the difference between the two files. I can dig further if that helps.
toktape
I set the profile with toktape profile --name juliankang4 --link https://github.com/juliankang4 and recorded on the Spark, against http://127.0.0.1:8080, with --host-label "DGX Spark":
- Clef-Flash
Q4_K_M(bartowski revd7f376ea) with the head (Cloudflare/clef-flash rev8b2e5fd1),toktape decidewith the built-in suite: 168 requests (8 cases × 21 passes), warm p50 215 ms, short p50 209 ms, long p50 4626 ms, 1.3 requests/s, prefill 1843 tokens/s median. Tape20261011-095651-cloudflare-clef-flash-q4. - Qwen3.6-35B-A3B
Q4_K_M, plaintoktape: decode 69.1 tok/s, prefill 3999 tok/s over 7257 prompt tokens, TTFT 1821 ms. The card's two caveats are the ones a reasoning model gets at the default 20 s (all 1256 tokens were thinking, and the clock cut the run). Tape20261011-095957-qwen3-6-35b-a3b-q4-k-m.
publish --dry-run on both shows hostname "DGX Spark", the server URL as :8080, model paths cut to file names, and the profile above. The decide tape prints "text: nothing" as you said, and it carries one caveat, no_proc_view. I have not published either. Tell me when the card fix is in and I will publish these same two files and post the links here.
|
Thank you, Julian. This is everything we asked for, and more.
|
|
@juliankang4 Sorry for so many small asks in this thread. You have already done a lot, and we kept coming back with one more step. This should be the last one for the tapes. toktape 0.7.2 is out. It shows a GB10 as unified memory. You do not need to record again: your two tapes render right as they are. On the Spark: Each publish prints a link. The decide tape includes the prompts and answers; add |
|
Both are up, published with toktape 0.7.2 with the text included:
No need to apologize. These runs are easy for me to do, so ask whenever you need more data from the Spark. |
|
정말 감사합니다 ㅎㅎ 트위터에 자랑하러 가야겠네요!! |
What and why
P2 of
docs/contrib/dgx-spark.md, in the shape sketched on #13. Part of #13. It builds on #15: that pull request'scommit comes first on this branch, and the change here is the last commit.
On a DGX Spark the card and the host share one 128 GB memory, and the plan read it twice. The census took the card's
free bytes from
cuMemGetInfo, and the host's checks took their own figure, so a plan could count the same bytes onboth sides (§3.3).
cuMemGetInfoalso leaves out page cache there, so even a whole-on-card load saw far less room thanit had: with about 50 GB in page cache the census read 45.5 GB free, and the Qwen3 seat cut its default context to
253,952 of 262,144 positions. The measurement behind the change is on #13: allocations kept succeeding after
cuMemGetInforead a few GB free, andMemAvailablepredicted how far they went to within 0.5 GB.census()readsCU_DEVICE_ATTRIBUTE_INTEGRATEDintoDeviceInfo::integrated. On an integrated device the freereading is the host's room (
host_available:MemAvailableand the cgroup levels), read on the primary context likethe
cuMemGetInforeading it replaces, socappedstill adds the context's own cost back once.CardSpeccarriesthe flag from
spec_of_device.Gpu::alloc_roomgives the same reading to the load-time fits that refuse anallocation before making it: qwen35moe's ubatch arena, the GLM and MiMo prompt groups' units, MiMo's resident
sequence stores and V4.1's batch attention buffers. The GLM and MiMo
prompt_bytesreports of what those units cameout of read it too.
Machinegainsunified: Option<UnifiedPool>(UnifiedPool { bytes }, M4's shape cut to what P2 reads). Its doc andthe one on
hostsay both describe this process's node.workstation::unified_ofsetsunifiedfrom an integratedcard spec, and
workstation::host_ofmakes the host the pool itself on such a machine, with no OS reserve, because thereading already leaves out what the OS and every other process hold. An integrated spec with no free reading has no
pool to plan against, so the two panic by name there; a spec from the census always carries the reading.
plan_on,tieredand the qwen3moe and qwen35moe machines use the two; every otherMachineliteral getsunified: None.Plan::violationsgainsPoolOver: the cards'CardOvertotals with their margins, re-derived from the rows, andthe host's whole need, the NVMe split's arena and window included, must fit the pool, with each card's context self
cost added back as
cappedadds it.Plan::violations_besideadds what a plan's maker holds beside the plan andchecks against the card itself: the qwen35moe MTP draft, the GLM prompt front (through
checked_beside, which ischeckedwith those bytes) and the GLM NextN draft with its arena and the front pass theirs. The NextN plan checksthe host against the host's own bound, as
violationsdoes, so a plan past the pool is refused once.HostNeedgainscards(fromHostTotals::pool_card_bytes): the cards' share of the pool, with the reserve theplan's maker kept beside the plan, under the expert rule or with every routed expert on the host
(
plan_host_routed_reserving, which qwen35moe'sExperts::Hostarm calls with the MTP and slot reserve).Everything that reads the host's need then leaves the cards their share: the plan's host headroom, the load's host
check before any upload, the residency rules' room, the prompt cache's default budget and the NVMe split's room. It
is 0 on any other machine.
Machine::whole_cardsizes it with the host's reserves on the card. The qwen3seat's whole fit now counts the checkpoints its qwen35moe sequences pin.
a_unified_pool_holds_card_and_host_together(bloomery-placement). With an expected sum computed from themodel's bytes and every term (cache, context, scratch, a card reserve, margin, ring shadows, a host reserve, an NVMe
arena and window, bytes beside the plan), a plan at a pool of exactly that sum is clean, one byte under is one
PoolOvernaming each term, and the plan's host headroom is what the pool leaves. It holds with 6 and with 12experts on the card, and with a context term below
CONTEXT_SELFand withCONTEXTitself, where the pool addsback
CONTEXT_SELFand not the whole term.an_integrated_card_plans_against_one_poolandan_integrated_card_with_no_reading_has_no_pool(workstation):unified_of,host_ofandMachine::whole_cardfor a census device, integrated and not, and the named panic.a_drafted_plan_on_one_pool_counts_the_draft_once(tests/qwen4exp_mtp_reserve.rs) andslot_plans_on_one_pool_count_the_bytes_beside_once(glm5next) hold the callers that pass bytes beside the plan.Each plans at a pool equal to the need the plan's own host headroom counts, then one byte under it. The first is
clean; the second is one
PoolOverwhosebesideis the caller's bytes. The cases are the MTP draft under bothexpert rules at one and two slots, the GLM front alone, and the NextN layer with its arena, its routed experts on
the host and the front.
On a card with memory of its own nothing moves:
integratedis false,unified_ofisNone,host_ofisworkstation::host(),HostNeed::cardsis 0, the bytes beside a plan reach onlyPoolOver,Machine::whole_cardisthe first card, and
Gpu::alloc_roomiscuMemGetInfo's free bytes. The reserveplan_host_routed_reservingpassesreaches only
Fill::run's card budget, and with every routed expert on the host that fill has nothing to place.plan_tiers_is_plan_bp_a_and_gatestill holdsplan_a,plan_gateandplan_bpequal to their bodies field forfield.
Where this differs from the sketch on #13:
Fill::run) keeps its card budget. On one pool, an expert costs the same bytes on the card or on thehost, so the split does not change the sum, and
PoolOverrefuses the sum by name. A smaller card budget would onlymove experts to the slower side. (For a type whose card format is larger than its file bytes, such as
Q5_0, the cardside costs more, and the sum is then a little high: a refusal can come early, never late.)
whole_needkeeps its budget too; the host's reserves come to it as card reserves instead (Machine::whole_card).MemAvailablethe cache already counts as room.Left out on purpose:
Gpu::mem_infostill readscuMemGetInfowhere it measures device bytes: thehost_statsrecord'svram_free,the gates' device deltas and memguard holds, and V4.1's draft load. That last one is a free-bytes delta across the
load, which the DSpark gate checks against its plan's reserve. On GB10 the page cache the load fills could land in
that delta, but V4.1 is not a Spark seat, so I left it.
cuMemGetInforeading. It is not a fit for a planned need: it sizes itself to whatis free past
KEEP_FREE. On one pool,alloc_roomwould let it take the host headroom the plan hands to the promptcache and the residency rules.
cuMemGetInforeads less there (it leaves out page cache), so the ring comes outsmaller or is refused under
MIN_HALF, and withBLOOMERY_XSTREAMunset the qwen3.8 seat then admits instead ofsplitting. Holding the ring to the plan means counting it in that seat's plan, which I left for when the seat runs
on a Spark.
their share, but the NVMe tier on one pool is P4's (section 7).
placed seats (Qwen3.8, GLM-5.3, V4.1, MiMo) get the same machine and the same sum, but I have not run them on the
Spark.
What I ran into
None of these block this pull request. I'm writing them down because they cost me time, and you may want to change
some of them.
draft's reserve, the NextN draft with its arena and the prompt front, a whole load's checkpoints, the residency churn
pool. On a card with memory of its own, each side's own check was enough. On one pool every one of them had to reach
the sum by its own path, which is why this change has three:
violations_besidefor the plan makers,HostNeed::cardsfor what sizes itself from the host's room, andMachine::whole_cardfor whole loads. If a plancarried the bytes its maker holds beside it (on
CardTotals, say),violationswould see them, and the makers wouldnot need to filter
CardOverand add their terms back. I didn't make that change, since it moves your planners. Twoof the review's points, the GLM front and the
Experts::Hostreserve, were misses of this kind.bloomery-serve.crates/servebuilds the mock engine under that name, andcrates/gpu-gatesbuilds the seats. The host-nightly unit
tools/gate.sh --release --locked -p bloomery-servewrites the mock overtarget/release/bloomery-serve. After that,bloomery-serve --model qwen3stops withqwen3: io error: No such file or directory (os error 2), and-m <clef file>starts "mock engine" and answers 404on
/v1/systemone. I hit this by running the host units after the oxide build. cargo only warns about the collisionwhen one invocation builds both. A different name for the mock would remove the trap.
host_available, so tworuns can plan different defaults when other processes hold different amounts.
BLOOMERY_HOST_ROOMreplaces thatreading for the census too, so it pins the whole plan, card and host, and a plan made at a fixed room stays fixed.
CONTEXT_SELFis the A6000's 271 MiB. On the GB10 a primary context took 197 to 233 MiB ofMemAvailable(fiveretains in one process,
cuDevicePrimaryCtxRetainto release), so the add-back overstates the pool by about 50 MiB,inside the card's context term and margin. I left the constant alone.
Code shape
host_available), for the census and the load-timefits alike (
integrated_room); the pool's figure is the card spec's census reading, through one owner(
workstation::unified_of); the cards' share is counted once intotalsand read throughHostNeed.functions, and the MTP and NextN plans pass the bytes they already hold beside the plan; nothing in them knows
about GB10.
PoolOver; a load short of the pool is the load's namedhost refusal, with the cards' share as its own term; a failed host read in the census is a plan error naming it;
an integrated spec with no reading is a named panic.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed: none.
What I ran
On a Mac with the pinned nightly and the CUDA 13.3 headers:
FAIL-first, each change reverted on its own, each red in its test (the model crate's on the Spark; the rebase onto
current main changed none of the lines they revert):
PoolOverpush disabled:context 1000, 6 experts on the card: [], not one PoolOver;context 1000, 6 experts on the card: [], not one PoolOver;pool_card_bytesleft at 0: the headroom clause fails (left: 8612,right: 12);PoolOverwithout the bytes beside the plan:context 1000, 12 experts on the card: [], not one PoolOver;CONTEXT_SELF, and the cards' share less the whole contextterm:
a_unified_pool_holds_card_and_host_togetheratCONTEXT;Machine::whole_cardwithout the host's reserves,unified_ofignoringintegrated,host_ofkeepingworkstation::host():an_integrated_card_plans_against_one_pool;unified_ofwithout the panic:an_integrated_card_with_no_reading_has_no_pool;plan_slotspassing no front,plan_nextn_slotspassing nothing beside, its draft's host experts left out of thebytes beside or of the host headroom, and its host bound counting the cards' share again (
[PoolOver { .. }, HostOver { .. }]for the one overrun):slot_plans_on_one_pool_count_the_bytes_beside_once;Experts::Hostarm droppingreserve, and the MTP callers (one slot and slots) passing nothing beside:a_drafted_plan_on_one_pool_counts_the_draft_once.On the DGX Spark, in the container #14 describes:
tools/recipes.py host-nightlyunits pass in all 19 crates. After the review changes and the rebase,bloomery-placement(86 passed) andbloomery-model(267 passed, 104 ignored) pass again.bloomery-serve(cargo oxide build --arch sm_86 -- -p bloomery-gpu-gates --features glm5next,clef,vision,mimo2 --release --bin bloomery-serve), each model whole on the card, with about 48 GB of model files in page cache:web_search0.9823,calculator0.9545, as before"Before" is #15's tree with the same models; the page cache and the readings differ between runs, so the before and
after rooms are not one moment's. Qwen3.6's whole fit now carries
reserves 8589934592 B: the two slots' checkpoints,which it did not count before.
The P2 golden (§5, answers 6 and 14). Until the tape is published, P2's criterion is "answers, plan clean,
PoolOverholds", which the table and the tests above cover. Before that tape is recorded, one finding matters for it: the Spark
does not give the A6000's bits for the same file, head and commit. The public files I could check are bartowski's
Q4_K_MandQ3_K_Sat revd7f376ea(sha256 equal to the Hub's LFS oids), withjoint_head.safetensors, on the 15requests of
suite.jsonlandsuite-ko.jsonl. The rowse2e.pyreads are not published, so I compared whattools/ref/clef/agreement.mdprints for the A6000:Q4_K_Mreview-05/riskQ4_K_Msentiment-07/bug_reportQ3_K_Sreview-05/riskQ3_K_Ssentiment-07/bug_reportThe tops match and the probabilities differ in the third decimal. The gap is between the machines, not in the engine
changes since the table:
bccbc49c, the commit that wroteagreement.md, built on the Spark gives the same responsebodies as this branch on all 15 requests for both files. The only fields that differ are
confidence,modelandtimings, ande2f33c1cchanged the first two on purpose. To buildbccbc49cthere I added only the aarch64 changesof #14 and #15 to the host crates; its card code and head are as they were. Repeated runs on the Spark are
byte-identical apart from
timings.I did not measure where the GB10 and the A6000 part. The kernels use
ex2.approxand f16 MMA with f32 accumulation,and both may round differently between architectures; the q8_1 step on activations can then turn a last-bit difference
into a whole quantization step. That is a guess. Either way, a tape recorded on the A6000 will not replay byte for byte
on a Spark with these kernels. A tape recorded on a Spark, or a check of the tops with a bound on the probability gap,
would work as the P2 criterion. I can attach the Spark's
rows.jsonfor either.Not run: the GPU gates
just affectedselects, andjust stage-gpu-load-v41, which a change toworkstation.rsorcrates/model/src/placement.rsnames (AGENTS.md "Weekly and opt-in"). They need the box.Hardware
The DGX Spark of #14 (NVIDIA GB10, DGX OS 7.6.0, driver 595.84), in its CUDA 13.3.1 container. No speed numbers here.
AI help
An AI coding agent wrote the code changes and this description and ran the commands above on my machines. I did the
code review of the diff and the review of this pull request myself.