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
9
extern
"C"
{
10
#include <gguflib.h>
11
}
12
13
namespace
mlx::core
{
14
15
Shape
get_shape
(
const
gguf_tensor& tensor);
16
void
gguf_load_quantized
(
17
std::unordered_map<std::string, array>& a,
18
const
gguf_tensor& tensor);
19
20
}
// namespace mlx::core
io.h
mlx::core
Definition
allocator.h:7
mlx::core::get_shape
Shape get_shape(const gguf_tensor &tensor)
mlx::core::gguf_load_quantized
void gguf_load_quantized(std::unordered_map< std::string, array > &a, const gguf_tensor &tensor)
mlx::core::Shape
std::vector< ShapeElem > Shape
Definition
array.h:21
primitives.h
transforms.h
utils.h
mlx
io
gguf.h
Generated by
1.13.2