Desktop foundation / core (macos-latest) (push) Canceled after 0s
Desktop foundation / core (windows-latest) (push) Canceled after 0s
Linux / verify (push) Canceled after 0s
Linux / keyless-cuda (push) Canceled after 0s
Desktop foundation / core (ubuntu-latest) (push) Failing after 28s
Linux / static-cuda-package (push) Canceled after 0s
Linux / hosted-cuda-package (push) Canceled after 0s
Linux / linux-static-cli (push) Canceled after 0s
Linux / linux-cli-container (push) Canceled after 0s
Linux / release-cli (push) Canceled after 0s
30 lines
997 B
C++
30 lines
997 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
namespace strata::kar {
|
|
|
|
// Experimental native verifier cache-miss arm. Batched prefill and cache hits retain
|
|
// the native IQ weights. Not a full compressed-model serving implementation.
|
|
class ExpertMiss {
|
|
public:
|
|
ExpertMiss();
|
|
~ExpertMiss();
|
|
bool open(const char* archive, uint32_t layers, uint32_t experts,
|
|
uint32_t hidden, uint32_t intermediate, uint32_t level,
|
|
std::string& error);
|
|
bool compute(int64_t layer, const float* input, const int32_t* ids,
|
|
int64_t tokens, int64_t k, int32_t* kind, float* output,
|
|
std::string& error);
|
|
static bool dispatch(void* user, int64_t layer, const float* input,
|
|
const int32_t* ids, int64_t tokens, int64_t k,
|
|
int32_t* kind, float* output, std::string& error);
|
|
uint64_t computed() const;
|
|
private:
|
|
struct Impl;
|
|
std::unique_ptr<Impl> impl_;
|
|
};
|
|
}
|