Download examples/decode.json from susun-123/kern-kernels: direct link, hf CLI and curl.
- Browser
- Download file 10.4 kB
-
https://huggingface.co/datasets/susun-123/kern-kernels/resolve/main/examples/decode.json
- Command line
-
hf download hf://datasets/susun-123/kern-kernels/examples/decode.json
-
curl -L -o decode.json https://huggingface.co/datasets/susun-123/kern-kernels/resolve/main/examples/decode.json
10.4 kB
| { | |
| "schema_version": 4, | |
| "model": "trtllm-gen-decode-example", | |
| "vars": { | |
| "tokens": { | |
| "max": 64 | |
| }, | |
| "seqs": { | |
| "max": 2 | |
| } | |
| }, | |
| "buffers": { | |
| "q": { | |
| "dtype": "bf16", | |
| "shape": [ | |
| 64, | |
| 24, | |
| 256 | |
| ], | |
| "kind": "input" | |
| }, | |
| "out": { | |
| "dtype": "bf16", | |
| "shape": [ | |
| 64, | |
| 24, | |
| 256 | |
| ], | |
| "kind": "output" | |
| }, | |
| "kv": { | |
| "dtype": "bf16", | |
| "shape": [ | |
| 22, | |
| 2, | |
| 64, | |
| 4, | |
| 2, | |
| 256 | |
| ], | |
| "kind": "input" | |
| }, | |
| "table": { | |
| "dtype": "i32", | |
| "shape": [ | |
| 2, | |
| 11 | |
| ], | |
| "kind": "input" | |
| }, | |
| "seq": { | |
| "dtype": "i32", | |
| "shape": [ | |
| 2 | |
| ], | |
| "kind": "input" | |
| }, | |
| "cuq": { | |
| "dtype": "i32", | |
| "shape": [ | |
| 3 | |
| ], | |
| "kind": "input" | |
| } | |
| }, | |
| "modules": { | |
| "fmhaSm100fKernel_QkvBfloat16OBfloat16H256PagedKvCausalP64MultiCtasKvVarSeqQ8Kv128StaticSwapsAbForGen": { | |
| "source": "fmhaSm100fKernel_QkvBfloat16OBfloat16H256PagedKvCausalP64MultiCtasKvVarSeqQ8Kv128StaticSwapsAbForGen.cubin", | |
| "sha256": "a5c3300d05153675d2c6c432c50be888f3e0a8bb6c3ffbdaed48fbb25e52f86e" | |
| } | |
| }, | |
| "ops": { | |
| "decode": { | |
| "params": [ | |
| "out buffer<bf16>", | |
| "in buffer<bf16>", | |
| "in buffer<bf16>", | |
| "in buffer<bf16>", | |
| "in buffer<i32>", | |
| "in buffer<i32>", | |
| "in buffer<i32>", | |
| "i32", | |
| "i32" | |
| ], | |
| "impl": { | |
| "scratch": { | |
| "counter": { | |
| "dtype": "i32", | |
| "shape": [ | |
| 48 | |
| ] | |
| }, | |
| "stats": { | |
| "dtype": "f32", | |
| "shape": [ | |
| 2, | |
| 4, | |
| 38, | |
| 8, | |
| 2 | |
| ] | |
| }, | |
| "partial": { | |
| "dtype": "f32", | |
| "shape": [ | |
| 2, | |
| 4, | |
| 38, | |
| 8, | |
| 256 | |
| ] | |
| } | |
| }, | |
| "launches": [ | |
| { | |
| "module": "fmhaSm100fKernel_QkvBfloat16OBfloat16H256PagedKvCausalP64MultiCtasKvVarSeqQ8Kv128StaticSwapsAbForGen", | |
| "entry": "fmhaSm100fKernel_QkvBfloat16OBfloat16H256PagedKvCausalP64MultiCtasKvVarSeqQ8Kv128StaticSwapsAbForGen", | |
| "params": [ | |
| "bytes<1280>" | |
| ], | |
| "block": [ | |
| 512, | |
| 1, | |
| 1 | |
| ], | |
| "grid": [ | |
| 38, | |
| 4, | |
| "seqs" | |
| ], | |
| "shared_mem": 144992, | |
| "args": [ | |
| { | |
| "pack": { | |
| "size": 1280, | |
| "fields": [ | |
| { | |
| "at": 0, | |
| "tensormap": { | |
| "param": 1, | |
| "dtype": "bf16", | |
| "dims": [ | |
| 256, | |
| 6, | |
| 4, | |
| 64 | |
| ], | |
| "strides": [ | |
| 512, | |
| 3072, | |
| 12288 | |
| ], | |
| "box": [ | |
| 64, | |
| 6, | |
| 1, | |
| 1 | |
| ], | |
| "swizzle": 128, | |
| "l2_promotion": 128 | |
| } | |
| }, | |
| { | |
| "at": 128, | |
| "tensormap": { | |
| "param": 2, | |
| "dtype": "bf16", | |
| "dims": [ | |
| 256, | |
| 64, | |
| 4, | |
| 0 | |
| ], | |
| "strides": [ | |
| 4096, | |
| 1024, | |
| 524288 | |
| ], | |
| "box": [ | |
| 64, | |
| 64, | |
| 1, | |
| 1 | |
| ], | |
| "swizzle": 128, | |
| "l2_promotion": 128 | |
| } | |
| }, | |
| { | |
| "at": 384, | |
| "tensormap": { | |
| "param": 3, | |
| "dtype": "bf16", | |
| "dims": [ | |
| 256, | |
| 64, | |
| 4, | |
| 0 | |
| ], | |
| "strides": [ | |
| 4096, | |
| 1024, | |
| 524288 | |
| ], | |
| "box": [ | |
| 64, | |
| 64, | |
| 1, | |
| 1 | |
| ], | |
| "swizzle": 128, | |
| "l2_promotion": 128 | |
| } | |
| }, | |
| { | |
| "at": 512, | |
| "tensormap": { | |
| "param": 0, | |
| "dtype": "bf16", | |
| "dims": [ | |
| 256, | |
| 64, | |
| 4, | |
| 6, | |
| 1 | |
| ], | |
| "strides": [ | |
| 12288, | |
| 512, | |
| 2048, | |
| 16 | |
| ], | |
| "box": [ | |
| 64, | |
| 8, | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| "swizzle": 128, | |
| "l2_promotion": 128 | |
| } | |
| }, | |
| { | |
| "at": 912, | |
| "param": 0 | |
| }, | |
| { | |
| "at": 1000, | |
| "param": 4 | |
| }, | |
| { | |
| "at": 1080, | |
| "param": 5 | |
| }, | |
| { | |
| "at": 1116, | |
| "param": 7 | |
| }, | |
| { | |
| "at": 1244, | |
| "param": 8 | |
| }, | |
| { | |
| "at": 1112, | |
| "i32": 2147483647 | |
| }, | |
| { | |
| "at": 1144, | |
| "i32": 1 | |
| }, | |
| { | |
| "at": 1148, | |
| "i32": 704 | |
| }, | |
| { | |
| "at": 1152, | |
| "i32": 1 | |
| }, | |
| { | |
| "at": 1156, | |
| "i32": 38 | |
| }, | |
| { | |
| "at": 1160, | |
| "i32": 11 | |
| }, | |
| { | |
| "at": 1164, | |
| "i32": 4 | |
| }, | |
| { | |
| "at": 1168, | |
| "i32": 24 | |
| }, | |
| { | |
| "at": 1172, | |
| "i32": 6 | |
| }, | |
| { | |
| "at": 1176, | |
| "i32": 6 | |
| }, | |
| { | |
| "at": 1180, | |
| "i32": -1431655765 | |
| }, | |
| { | |
| "at": 1188, | |
| "i32": 2 | |
| }, | |
| { | |
| "at": 1192, | |
| "i32": 6144 | |
| }, | |
| { | |
| "at": 1200, | |
| "i32": 44 | |
| }, | |
| { | |
| "at": 1204, | |
| "i32": 1 | |
| }, | |
| { | |
| "at": 1208, | |
| "i32": 6 | |
| }, | |
| { | |
| "at": 1212, | |
| "i32": 1 | |
| }, | |
| { | |
| "at": 1216, | |
| "i32": 1065353216 | |
| }, | |
| { | |
| "at": 1220, | |
| "i32": 1035512379 | |
| }, | |
| { | |
| "at": 1224, | |
| "i32": 1065353216 | |
| }, | |
| { | |
| "at": 1228, | |
| "i32": -1082130432 | |
| }, | |
| { | |
| "at": 1252, | |
| "i32": 256 | |
| }, | |
| { | |
| "at": 984, | |
| "scratch": "counter" | |
| }, | |
| { | |
| "at": 1008, | |
| "scratch": "partial" | |
| }, | |
| { | |
| "at": 1016, | |
| "scratch": "stats" | |
| } | |
| ] | |
| } | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| }, | |
| "programs": { | |
| "decode": { | |
| "batch": { | |
| "groups": 2, | |
| "rows": 1 | |
| }, | |
| "calls": [ | |
| { | |
| "label": "attention", | |
| "op": "decode", | |
| "args": [ | |
| { | |
| "buf": "out" | |
| }, | |
| { | |
| "buf": "q" | |
| }, | |
| { | |
| "buf": "kv", | |
| "offset": 262144 | |
| }, | |
| { | |
| "buf": "kv", | |
| "offset": 262656 | |
| }, | |
| { | |
| "buf": "table" | |
| }, | |
| { | |
| "buf": "seq" | |
| }, | |
| { | |
| "buf": "cuq" | |
| }, | |
| { | |
| "var": "seqs" | |
| }, | |
| { | |
| "var": "tokens" | |
| } | |
| ] | |
| } | |
| ] | |
| } | |
| } | |
| } | |