weights_loader.h 363 Bytes
Newer Older
blkmjsian's avatar
blkmjsian committed
1
2
3
4
5
6
7
#ifndef WEIGHTS_LOADER_H
#define WEIGHTS_LOADER_H

#include <infinirt.h>

struct ModelWeights;

8
__INFINI_C __export void
blkmjsian's avatar
blkmjsian committed
9
10
loadModelWeight(struct ModelWeights *weights, const char *name, void *data);

11
__INFINI_C __export void
blkmjsian's avatar
blkmjsian committed
12
13
14
loadModelWeightDistributed(struct ModelWeights *weights, const char *name, void *data, int *ranks, int nrank);

#endif // WEIGHTS_LOADER_H