Download include/ling3/execution_plan.h from Sariel00/Ling-3.0-tiny-RKNN: direct link, hf CLI and curl.
- Browser
- Download file 696 Bytes
-
https://huggingface.co/Sariel00/Ling-3.0-tiny-RKNN/resolve/main/include/ling3/execution_plan.h
- Command line
-
hf download hf://Sariel00/Ling-3.0-tiny-RKNN/include/ling3/execution_plan.h
-
curl -L -o execution_plan.h https://huggingface.co/Sariel00/Ling-3.0-tiny-RKNN/resolve/main/include/ling3/execution_plan.h
696 Bytes
| namespace ling3 { | |
| enum class AttentionKind : std::uint8_t { kKda, kMla }; | |
| enum class FfnKind : std::uint8_t { kDense, kMoe }; | |
| struct LayerPlan { | |
| std::uint8_t index = 0; | |
| AttentionKind attention = AttentionKind::kKda; | |
| FfnKind ffn = FfnKind::kMoe; | |
| }; | |
| struct ExecutionPlan { | |
| std::array<LayerPlan, 24> layers{}; | |
| std::size_t decode_matmul_contexts = 0; | |
| std::size_t rknn_island_contexts = 0; | |
| std::size_t kda_state_bytes_fp16 = 0; | |
| std::size_t mla_cache_bytes_fp16 = 0; | |
| std::size_t activation_arena_bytes = 0; | |
| }; | |
| ExecutionPlan BuildExecutionPlan(std::size_t max_context); | |
| } // namespace ling3 | |