You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Copyright (c) 2025, IST Austria, developed by Erik Schultheis
// SPDX-License-Identifier: Apache-2.0
//
#ifndef LLMQ_SRC_UTILITIES_SOL_H
#define LLMQ_SRC_UTILITIES_SOL_H
#include <utility>
#include <vector>
enum class ETensorDType : int;
// Estimate how many ops of each type a transformer will need
std::vector<std::pair<ETensorDType, long>> get_transformer_ops(long non_embedding_params, ETensorDType non_embedding_dtype, long embedding_params, ETensorDType embedding_dtype, long d_att, long n_layers, long ctx);
// For a given list of operations, how many microseconds would it take the device if it ran at
// peak speed
long estimate_speed_of_light(const char* device, const std::vector<std::pair<ETensorDType, long>>& ops);