MLX
Loading...
Searching...
No Matches
gguf.h
Go to the documentation of this file.
1// Copyright © 2023-2024 Apple Inc.
2#pragma once
3
4#include "mlx/io.h"
5#include "mlx/primitives.h"
6#include "mlx/transforms.h"
7#include "mlx/utils.h"
8
9extern "C" {
10#include <gguflib.h>
11}
12
13namespace mlx::core {
14
15std::vector<int> get_shape(const gguf_tensor& tensor);
17 std::unordered_map<std::string, array>& a,
18 const gguf_tensor& tensor);
19
20} // namespace mlx::core
Definition allocator.h:7
void gguf_load_quantized(std::unordered_map< std::string, array > &a, const gguf_tensor &tensor)
std::vector< int > get_shape(const gguf_tensor &tensor)