Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions zig/inkling2_source_owners_host.zig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Independent byte identity receipt against the supplied main's assembled libraries.
//! Assembled runtime libraries match their reviewed source pins.
const std = @import("std");
const ink = @import("inkling2_metal");
const ks = @import("kernel_sources");
Expand Down Expand Up @@ -35,12 +35,13 @@ test "every assembled glue kernel uses one scalar or vector width for positional
}
}
}
test "every current generated Inkling and LFM2 library is byte-identical to supplied main" {
test "every current generated Inkling and LFM2 library matches its reviewed source pins" {
try equal(ink.attention, 28563, "0969f2367a5955f0215ee82017fe536b85d5b9a5f763942383a4f90d1cda6f60");
try equal(ink.prompt_attention, 36507, "2e690463846a822b5c087139eaa3dfbc9a980caa7753e36cb3562afc88a17abd");
try equal(ink.prompt_attention_pre_m5, 36531, "28b71a25e1aab7174cf121f3ae05f84afb165970443a91f6978c06628630935b");
try equal(ink.glue, 41376, "d314051ebd95a9684bdc83aa639224d1659d970fea54b4d9197fc1733db61ca3");
try equal(ink.prompt_attention, 38459, "3057368237eda80ecaa153c6209821d297e6e957a252f0897cf7bf445611315e");
try equal(ink.prompt_attention_pre_m5, 38483, "e5293db5b5144d0b8490a499c60a51e481e64cbf085ee6150042ce54d21eebef");
try equal(ink.glue, 42623, "0f4564349cd972c641812ab3d1fc71da085b88a045f28c794ecd35ff9718def7");
try equal(ink.experts, 40741, "5dff5235b0ff5b3c033113043969c3b4d857a9c1751733c5824f6967b0c0db10");
try equal(ink.experts_units, 75820, "62306b93de9cbfe1ce27ea205762986ae76ca12dbcdc6b18ad65c8e2b322ebc4");
try equal(ink.experts_mma, 54957, "dd04bd9b6cd695404966f9b182831a35a987fb7db81aaf44ee6c440d231bca86");
try equal(ink.dense_mma, 5389, "6d0b015dd66035efbd110ae4d8dd690ca677ed9c500a83837aee7269161b334a");
try equal(ink.dense_tiled, 4324, "cdddebd86d265d9a79fd93b80894266750ca267e7ffeb76c481e6e73ab03c3ee");
Expand All @@ -53,7 +54,7 @@ test "every current generated Inkling and LFM2 library is byte-identical to supp
try equal(ink.vision, 40124, "f3bccee002e5b0d7572dc25316538b384e397a4f5dba3f4ac99839e434d848c6");
try equal(ink.inkling2_dflash2, 22370, "74a5e9a2324b5875a754e931243203bf19b426758fe6a2a524c62f6809f96dbd");
try equal(ink.sample, 10443, "747835e5a84d76d7d838958e2677aa5af62e4ebf2e612520bfc759e967d44c81");
try equal(ks.inkling2_glue, 26731, "93ef5c160698f9d4faa17efe377c6c4370ea7b52ec1fda8ed7c4f6edfb0c9627");
try equal(ks.inkling2_glue, 27978, "584e06e726d4fc7a74212a04c2cdd3b589b5425871498479ce9597b5d167f65b");
try equal(ks.inkling2_sample, 10443, "747835e5a84d76d7d838958e2677aa5af62e4ebf2e612520bfc759e967d44c81");
try equal(ks.lfm2_prompt_masked.source, 16617, "5b5edd3224410f5bebb192cb2781692e21a17baad26be73b8e842f2bee92b0f0");
try equal(ks.inkling2_runtime, 7891, "9f3cff7027ad7b6b5229956688ae2f4b5e00af30e0bd1761a94f0c4c81fa7b01");
Expand Down
2 changes: 2 additions & 0 deletions zig/kernels/metal/inkling2/experts_sources.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ const guard = @import("../threadgroup_source.zig");
pub const experts = guard.normalize(@embedFile("experts.metal") ++ "\n" ++ @embedFile("experts_grouped.metal"));
/// The same products on simdgroup matrices, for GPUs without tensor units: after the decode helpers above.
pub const experts_mma = guard.normalize(experts ++ @embedFile("experts_mma.metal"));
/// Tensor-unit products use the current packed-weight decoders and the same grouped table layout.
pub const experts_units = guard.normalize(@embedFile("../nax.h") ++ experts ++ @embedFile("units.metal") ++ @embedFile("experts_units.metal"));
336 changes: 336 additions & 0 deletions zig/kernels/metal/inkling2/experts_units.metal

Large diffs are not rendered by default.

68 changes: 43 additions & 25 deletions zig/kernels/metal/inkling2/glue.metal
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#include <metal_stdlib>
#pragma METAL fp contract(off)
using namespace metal;

// Inkling 2 Mini glue. Every reduction is FP32; bfloat stores round nearest-even.
constant float INKLING_EPS = 1e-6f;
constant float INKLING_AR_SCALE = 0x1.555556p-6f; // binary32(1 / 48)

inline float ink_sigmoid(float x) {
const float e = precise::exp(-fabs(x));
return x < 0.0f ? precise::divide(e, 1.0f + e) : precise::divide(1.0f, 1.0f + e);
Expand All @@ -17,7 +15,6 @@ inline float ink_value(const device bfloat* blocks, const device float* partial,
uint source, uint sources, uint d) {
return source + 1 == sources ? partial[d] : float(blocks[size_t(source) * 2304 + d]);
}

// Two BF16 pairs of w and x multiplied and added to sum in column order.
inline float ink_pair(float sum, uint w, uint x) {
sum += as_type<float>(w << 16u) * as_type<float>(x << 16u);
Expand Down Expand Up @@ -151,37 +148,58 @@ inline void ink_ar_finish_regs(
out[d] = acc;
}
}
[[max_total_threads_per_threadgroup(256)]]
// Four consecutive values of a source: a completed block's BF16, or the running partial's FP32 for the last source.
inline float4 ink_values(const device bfloat* blocks, const device float* partial, uint source, uint sources, uint d) {
if (source + 1 == sources) return *(const device float4*)(partial + d);
return float4(*(const device bfloat4*)(blocks + size_t(source) * 2304 + d));
}

// Threadgroup (q, row): row's sources mixed by query q into out[q * rows + row], four values a thread.
[[max_total_threads_per_threadgroup(576)]]
kernel void tf_inkling2_ar(
const device bfloat* blocks_base [[buffer(0)]], const device float* partial_base [[buffer(1)]],
const device float* queries [[buffer(2)]], device float* out_base [[buffer(3)]],
const device bfloat* all_blocks [[buffer(0)]], const device float* all_partial [[buffer(1)]],
const device float* queries [[buffer(2)]], device float* all_out [[buffer(3)]],
constant InkARArgs& a [[buffer(4)]], uint t [[thread_index_in_threadgroup]],
uint2 at [[threadgroup_position_in_grid]], uint lane [[thread_index_in_simdgroup]]) {
const uint q = at.x, row = at.y;
uint2 tg [[threadgroup_position_in_grid]], uint lane [[thread_index_in_simdgroup]],
uint sg [[simdgroup_index_in_threadgroup]]) {
const uint q = tg.x, row = tg.y, d = 4u * t;
if (q >= a.queries || row >= a.rows || a.sources == 0 || a.sources > 5) return;
// Row `row`'s blocks, partial sums and output start that row's stride past the first row's.
const device bfloat* blocks = blocks_base + size_t(row) * a.blocks_stride;
const device float* partial = partial_base + size_t(row) * a.partial_stride;
device float* out = out_base + size_t(row) * a.out_stride;
threadgroup float red[2 * 5 * 8], means[5], weights[5];
for (uint s = 0; s < a.sources; ++s) {
float ss = 0.0f;
for (uint d = t; d < 2304; d += 256) {
const float x = ink_value(blocks, partial, s, a.sources, d);
ss += x * x;
}
const float reduced = simd_sum(ss);
if (lane == 0) red[s * 8 + t / 32] = reduced;
const device bfloat* blocks = all_blocks + size_t(row) * a.blocks_stride;
const device float* partial = all_partial + size_t(row) * a.partial_stride;
device float* out = all_out + size_t(row) * a.out_stride + size_t(q) * 2304;
// Each of the 18 simdgroups folds the partial sums itself, so no thread waits on another's result.
threadgroup float red[5 * 18], dots[5 * 18];
float4 x[5];
for (uint s = 0; s < 5; ++s) {
x[s] = s < a.sources ? ink_values(blocks, partial, s, a.sources, d) : float4(0.0f);
const float4 sq = x[s] * x[s];
const float reduced = simd_sum((sq.x + sq.y) + (sq.z + sq.w));
if (lane == 0) red[s * 18 + sg] = reduced;
}
threadgroup_barrier(mem_flags::mem_threadgroup);
if (t == 0) for (uint s = 0; s < a.sources; ++s) {
float ss = 0.0f;
for (uint j = 0; j < 8; ++j) ss += red[s * 8 + j];
const float4 query = *(const device float4*)(queries + size_t(q) * 2304 + d);
float means[5];
for (uint s = 0; s < 5; ++s) {
const float ss = simd_sum(lane < 18u ? red[s * 18 + lane] : 0.0f);
means[s] = precise::rsqrt(precise::divide(ss, 2304.0f) + INKLING_EPS);
const float4 z = query * (x[s] * means[s]);
const float reduced = simd_sum((z.x + z.y) + (z.z + z.w));
if (lane == 0) dots[s * 18 + sg] = reduced;
}
threadgroup_barrier(mem_flags::mem_threadgroup);
ink_ar_finish(blocks, partial, queries, out, a.sources, q, 2304, t, lane, red + 40, means, weights);
float ar_weights[5], peak = -INFINITY;
for (uint s = 0; s < 5; ++s) {
const float dot = simd_sum(lane < 18u ? dots[s * 18 + lane] : 0.0f);
ar_weights[s] = dot * INKLING_AR_SCALE;
if (s < a.sources) peak = max(peak, ar_weights[s]);
}
float den = 0.0f;
for (uint s = 0; s < a.sources; ++s) { ar_weights[s] = precise::exp(ar_weights[s] - peak); den += ar_weights[s]; }
float4 acc = float4(0.0f);
for (uint s = 0; s < a.sources; ++s) acc += precise::divide(ar_weights[s], den) * (x[s] * means[s]);
*(device float4*)(out + d) = acc;
}

[[max_total_threads_per_threadgroup(256)]]
kernel void tf_inkling2_block_inv_rms(
const device bfloat* blocks [[buffer(0)]], device float* inv_rms [[buffer(1)]],
Expand Down
54 changes: 48 additions & 6 deletions zig/kernels/metal/inkling2/prompt_attention.metal
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,27 @@ using namespace metal;
constant constexpr uint D = 128, REL = 16, EXTENT = 1024, KEYS = 64, PAIRS = 128;
constant constexpr float LOG2E = 1.4426950408889634f;
struct InkPromptSeg { int row0, n, p0, pad; long off; };
struct InkPromptArgs { uint heads, kv_heads, ring, chunk, c0, chunks; float scale; };
struct InkPromptArgs { uint heads, kv_heads, ring, chunk, c0, chunks; float scale; uint window; };

inline size_t ink_prompt_rh(const thread InkPromptSeg& s, uint heads, uint group, uint kvh, uint pair) {
return (size_t(s.row0) + pair / group) * heads + kvh * group + pair % group;
}

inline uint ink_prompt_first(constant InkPromptArgs& a, uint pos) {
return a.window ? (pos + 1 > a.window ? pos + 1 - a.window : 0u) / a.chunk : a.c0;
}

#ifndef TF_SIMD_FRAGS
// The 16x16 block at key row r, column c of a tile in the cache, two loads a lane; a key from `keys` on reads as zero.
inline void ink_tile_get(thread tfp::frag<bfloat>& f, const device bfloat* tile, int r, int c, short2 home, int keys) {
const device bfloat* q = tile + (r + home.y) * int(D) + (c + home.x);
const bfloat none = bfloat(0);
const bfloat4 zero = bfloat4(none, none, none, none);
f = tfp::frag<bfloat>(r + home.y < keys ? bfloat4(*(const device bfloat4*)q) : zero,
r + home.y + 8 < keys ? bfloat4(*(const device bfloat4*)(q + 8 * int(D))) : zero);
}
#endif

inline void ink_fold(thread float& mm, thread float& ll, float m, float l, thread float& a, thread float& b) {
const float mn = max(mm, m);
a = precise::exp2(mm - mn);
Expand Down Expand Up @@ -40,13 +55,17 @@ kernel void tf_ink2_attn_prompt(const device bfloat* q [[buffer(0)]], const devi
device float* part_o [[buffer(6)]], device float2* part_ml [[buffer(7)]],
constant InkPromptArgs& a [[buffer(8)]], uint3 tg [[threadgroup_position_in_grid]],
uint sg [[simdgroup_index_in_threadgroup]], uint lane [[thread_index_in_simdgroup]], uint t [[thread_index_in_threadgroup]]) {
#ifdef TF_SIMD_FRAGS
threadgroup bfloat ks[KEYS * D], vs[KEYS * D];
#endif
const InkPromptSeg s = segs[0];
const uint group = a.heads / a.kv_heads, total = uint(s.n) * group, m0 = tg.x * PAIRS;
if (m0 >= total) return;
const uint kvh = tg.y, c = a.c0 + tg.z, b_lo = c * a.chunk;
const uint tile_hi = uint(s.p0) + min(m0 + PAIRS - 1, total - 1) / group;
if (b_lo > tile_hi) return;
const uint first_pos = uint(s.p0) + m0 / group;
if (a.window && first_pos + 1 > a.window && b_lo + a.chunk <= first_pos + 1 - a.window) return;
const uint k_hi = min(b_lo + a.chunk - 1, tile_hi), m = m0 + 16 * sg;
const short2 home = tfp::frag_home(ushort(lane));
const uint row_a = m + uint(home.y), row_b = row_a + 8;
Expand All @@ -60,6 +79,7 @@ kernel void tf_ink2_attn_prompt(const device bfloat* q [[buffer(0)]], const devi
float upper[2] = {-INFINITY, -INFINITY}, whole[2] = {0.0f, 0.0f};
for (uint kt = b_lo; kt <= k_hi; kt += KEYS) {
const uint tile_end = min(kt + KEYS, k_hi + 1);
#ifdef TF_SIMD_FRAGS
for (uint e = t; e < KEYS * D; e += 256) {
const uint key = e / D, col = e % D, kp = kt + key;
const bool live = kp < tile_end;
Expand All @@ -68,6 +88,12 @@ kernel void tf_ink2_attn_prompt(const device bfloat* q [[buffer(0)]], const devi
vs[e] = live ? vc[at] : bfloat(0);
}
threadgroup_barrier(mem_flags::mem_threadgroup);
#else
// A tile is 64 keys from a multiple of 64 and a ring is a multiple of 64 rows, so a tile never wraps its ring.
const device bfloat* tile_k = kc + hb + size_t(kt % a.ring) * D;
const device bfloat* tile_v = vc + hb + size_t(kt % a.ring) * D;
const int keys = int(tile_end - kt);
#endif
if ((kt - b_lo) % 1024 == 0) {
for (uint d = 0; d < 8; ++d) acc[d] = tfp::frag<float>(0);
top[0] = top[1] = -INFINITY; mass[0] = mass[1] = 0.0f;
Expand All @@ -77,10 +103,17 @@ kernel void tf_ink2_attn_prompt(const device bfloat* q [[buffer(0)]], const devi
for (uint d = 0; d < 8; ++d) {
tfp::frag<bfloat> qa, kb0, kb1, kb2, kb3;
tfp::frag_get_rows(qa, qb0, qb1, 16 * d, home, row_a < total, row_b < total);
#ifdef TF_SIMD_FRAGS
tfp::frag_get_t(kb0, ks, D, 0, 16 * d, home);
tfp::frag_get_t(kb1, ks, D, 16, 16 * d, home);
tfp::frag_get_t(kb2, ks, D, 32, 16 * d, home);
tfp::frag_get_t(kb3, ks, D, 48, 16 * d, home);
#else
ink_tile_get(kb0, tile_k, 0, 16 * d, home, keys);
ink_tile_get(kb1, tile_k, 16, 16 * d, home, keys);
ink_tile_get(kb2, tile_k, 32, 16 * d, home, keys);
ink_tile_get(kb3, tile_k, 48, 16 * d, home, keys);
#endif
tfp::mma_16x32<false, true>(score[0], score[1], qa, kb0, kb1);
tfp::mma_16x32<false, true>(score[2], score[3], qa, kb2, kb3);
}
Expand All @@ -100,7 +133,7 @@ kernel void tf_ink2_attn_prompt(const device bfloat* q [[buffer(0)]], const devi
}
for (uint f = 0; f < 4; ++f) for (uint ce = 0; ce < 4; ++ce) {
const uint e = 4 * h + ce, col = uint(home.x) + TF_COL(e), kp = kt + 16 * f + col;
const bool live = row_live && kp <= pos && kp >= sub_lo && kp <= sub_hi;
const bool live = row_live && kp <= pos && kp >= sub_lo && kp <= sub_hi && (a.window == 0u || kp + a.window > pos);
const uint distance = live ? pos - kp : 0;
float bias = 0.0f;
if (live && distance < EXTENT) {
Expand Down Expand Up @@ -131,8 +164,13 @@ kernel void tf_ink2_attn_prompt(const device bfloat* q [[buffer(0)]], const devi
for (uint d = 0; d < 8; ++d) for (uint e = 0; e < 8; ++e) acc[d][e] *= keep[e >> 2];
for (uint f = 0; f < 4; ++f) for (uint d = 0; d < 8; d += 2) {
tfp::frag<bfloat> v0, v1;
#ifdef TF_SIMD_FRAGS
tfp::frag_get(v0, vs, D, 16 * f, 16 * d, home);
tfp::frag_get(v1, vs, D, 16 * f, 16 * d + 16, home);
#else
ink_tile_get(v0, tile_v, 16 * f, 16 * d, home, keys);
ink_tile_get(v1, tile_v, 16 * f, 16 * d + 16, home, keys);
#endif
tfp::mma_16x32<false, false>(acc[d], acc[d + 1], p[f], v0, v1);
}
}
Expand All @@ -143,22 +181,26 @@ kernel void tf_ink2_attn_prompt(const device bfloat* q [[buffer(0)]], const devi
ink_fold(upper[h], whole[h], top[h], mass[h], x, y);
for (uint d = 0; d < 8; ++d) for (uint e = 4 * h; e < 4 * h + 4; ++e) out[d][e] = out[d][e] * x + acc[d][e] * y;
}
#ifdef TF_SIMD_FRAGS
threadgroup_barrier(mem_flags::mem_threadgroup); // no simdgroup reads ks/vs when the next tile overwrites them
#endif
}
if (m >= total) return;
for (uint d = 0; d < 8; ++d) for (uint e = 0; e < 8; ++e) {
const uint row = m + uint(home.y) + (e >> 2) * 8, col = uint(home.x) + TF_COL(e);
if (row >= total) continue;
const uint pos = uint(s.p0) + row / group;
if (b_lo > pos) continue;
const uint pos = uint(s.p0) + row / group, first = ink_prompt_first(a, pos);
if (b_lo > pos || c < first) continue;
const size_t prow = ink_prompt_rh(s, a.heads, group, kvh, row);
part_o[(prow * a.chunks + c - a.c0) * D + 16 * d + col] = out[d][e];
part_o[(prow * a.chunks + c - first) * D + 16 * d + col] = out[d][e];
}
if (home.x == 0) for (uint h = 0; h < 2; ++h) {
const uint row = m + uint(home.y) + 8 * h;
if (row >= total || b_lo > uint(s.p0) + row / group) continue;
const size_t prow = ink_prompt_rh(s, a.heads, group, kvh, row);
part_ml[prow * a.chunks + c - a.c0] = float2(upper[h], whole[h]);
const uint first = ink_prompt_first(a, uint(s.p0) + row / group);
if (c < first) continue;
part_ml[prow * a.chunks + c - first] = float2(upper[h], whole[h]);
}
}

Expand Down
43 changes: 43 additions & 0 deletions zig/kernels/metal/inkling2/units.metal
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// The tensor-unit op Inkling 2 Mini's expert products are built on, after nax.h: FP32 sums of BF16 products.
using namespace metal;

// (lo | hi) += a (b0 | b1)^T, b's blocks as stored, [output][column]: nax.h's 16x32x16 op without relaxed precision.
inline void ink2_mma(thread tfp::frag<float>& lo, thread tfp::frag<float>& hi, thread const tfp::frag<bfloat>& a,
thread const tfp::frag<bfloat>& b0, thread const tfp::frag<bfloat>& b1) {
using namespace mpp::tensor_ops;
constexpr auto shape = matmul2d_descriptor(16, 32, 16, false, true, false, matmul2d_descriptor::mode::multiply_accumulate);
matmul2d<shape, execution_simdgroup> op;
auto left = op.template get_left_input_cooperative_tensor<bfloat, bfloat, float>();
auto right = op.template get_right_input_cooperative_tensor<bfloat, bfloat, float>();
auto acc = op.template get_destination_cooperative_tensor<metal::remove_addrspace_t<decltype(left)>,
metal::remove_addrspace_t<decltype(right)>, float>();
TF_UNROLL
for (short e = 0; e < 8; e++) {
left[e] = a[e];
right[e] = b0[e];
right[8 + e] = b1[e];
acc[e] = lo[e];
acc[8 + e] = hi[e];
}
op.run(left, right, acc);
TF_UNROLL
for (short e = 0; e < 8; e++) {
lo[e] = acc[e];
hi[e] = acc[8 + e];
}
}

// A simdgroup's partial sums into the threadgroup's block, and the eight simdgroups' partials added in order.
inline void ink2_part_put(threadgroup float* part, thread const tfp::frag<float>& lo, thread const tfp::frag<float>& hi, uint sg, uint lane) {
for (uint e = 0u; e < 8u; ++e) {
part[(sg * 16u + e) * 32u + lane] = lo[e];
part[(sg * 16u + 8u + e) * 32u + lane] = hi[e];
}
}
inline void ink2_part_sum(threadgroup float* part, thread tfp::frag<float>& lo, thread tfp::frag<float>& hi, uint lane) {
for (uint e = 0u; e < 8u; ++e)
for (uint o = 1u; o < 8u; ++o) {
lo[e] += part[(o * 16u + e) * 32u + lane];
hi[e] += part[(o * 16u + 8u + e) * 32u + lane];
}
}
1 change: 1 addition & 0 deletions zig/kernels/metal/inkling2_facade.zig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub const prompt_attention_pre_m5 = owner.prompt_attention_pre_m5;
pub const glue = owner.glue;
pub const experts = owner.experts;
pub const experts_mma = owner.experts_mma;
pub const experts_units = owner.experts_units;
pub const dense_mma = owner.dense_mma;
pub const dense_tiled = owner.dense_tiled;
pub const loop = owner.loop;
Expand Down
1 change: 1 addition & 0 deletions zig/kernels/metal/inkling2_sources.zig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pub const experts = @import("inkling2/experts_sources.zig").experts;
pub const experts_mma = @import("inkling2/experts_sources.zig").experts_mma;
pub const dense_mma = @import("inkling2/dense_sources.zig").dense_mma;
pub const dense_tiled = @import("inkling2/dense_sources.zig").dense_tiled;
pub const experts_units = @import("inkling2/experts_sources.zig").experts_units;
pub const loop = @import("inkling2/loop_sources.zig").loop;
pub const loop_mma = @import("inkling2/loop_sources.zig").loop_mma;
pub const runtime = @import("inkling2/runtime_sources.zig").runtime;
Expand Down
1 change: 1 addition & 0 deletions zig/runtime_sources/completion.zig
Original file line number Diff line number Diff line change
Expand Up @@ -173,5 +173,6 @@ fn inkling2(s: *Set) !void {
try s.raw("inkling2", "tfq3", ks.inkling2_tfq3);
try s.fragments("inkling2", "vision", src.vision);
try s.add("inkling2", "inkling2_dflash2", src.inkling2_dflash2, precise());
if (s.units) try s.raw("inkling2", "experts_units", src.experts_units);
try s.raw("inkling2", if (s.units) "inkling2_dspark" else "inkling2_dspark_pre_m5", if (s.units) src.inkling2_dspark else src.inkling2_dspark_pre_m5);
}
Loading
Loading