Skip to content

sgns::neoswarm::core::MNNInferenceEngine::Config

#include <mnn_inference_engine.hpp>

Public Attributes

Name
std::string m_engineMode
Inference path: "sgprocessing" (primary) or "interpreter" (fallback)
std::string m_backend
GPU backend: "vulkan" (cross-platform) or "cpu".
bool m_useFp4
Use FP4 quantization for SGProcessing path.
int m_numThreads
CPU thread count (used when m_backend == "cpu")
int m_maxNewTokens
float m_temperature
float m_topP
int m_topK
float m_repetitionPenalty
bool m_sgNetworkMode
SGProcessing network mode (Phase 2: dispatch via gRPC to SuperGenius)
constexpr int kDefaultMaxTokens
Generation parameters.
constexpr float kDefaultTemperature
constexpr float kDefaultTopP
constexpr int kDefaultTopK
constexpr float kDefaultRepetitionPenalty

Public Attributes Documentation

variable m_engineMode

std::string m_engineMode = "sgprocessing";

Inference path: "sgprocessing" (primary) or "interpreter" (fallback)

variable m_backend

std::string m_backend = "vulkan";

GPU backend: "vulkan" (cross-platform) or "cpu".

variable m_useFp4

bool m_useFp4 = true;

Use FP4 quantization for SGProcessing path.

variable m_numThreads

int m_numThreads = 4;

CPU thread count (used when m_backend == "cpu")

variable m_maxNewTokens

int m_maxNewTokens = kDefaultMaxTokens;

variable m_temperature

float m_temperature = kDefaultTemperature;

variable m_topP

float m_topP = kDefaultTopP;

variable m_topK

int m_topK = kDefaultTopK;

variable m_repetitionPenalty

float m_repetitionPenalty = kDefaultRepetitionPenalty;

variable m_sgNetworkMode

bool m_sgNetworkMode = false;

SGProcessing network mode (Phase 2: dispatch via gRPC to SuperGenius)

variable kDefaultMaxTokens

static constexpr int kDefaultMaxTokens = 512;

Generation parameters.

variable kDefaultTemperature

static constexpr float kDefaultTemperature = 0.7f;

variable kDefaultTopP

static constexpr float kDefaultTopP = 0.9f;

variable kDefaultTopK

static constexpr int kDefaultTopK = 40;

variable kDefaultRepetitionPenalty

static constexpr float kDefaultRepetitionPenalty = 1.1f;

Updated on 2026-10-09 at 03:59:42 +0000