Skip to content

armgit / uzu

Public Imported from GitHub
0

A high-performance inference engine for AI models

492 B
Raw Blame
// Auto-generated from gpu_types/trellis - do not edit manually
#pragma once

#include <metal_stdlib>
using namespace metal;

namespace uzu::trellis {
static constant constexpr uint32_t COLUMN_GROUP_COUNT = 4;

static constant constexpr uint32_t MAX_DIMENSION = 20480;

static constant constexpr uint32_t MIN_HADAMARD_SIZE = 512;

static constant constexpr uint32_t MAX_HADAMARD_SIZE = 4096;

typedef struct {
  float scale;
  float offsets[4];
} TrellisCodebook;
} // namespace uzu::trellis