Compare commits
1 Commits
main
...
format-con
Author | SHA1 | Date | |
---|---|---|---|
|
23481167a7 |
@ -116,6 +116,7 @@ type LayerReader struct {
|
|||||||
type ConfigV2 struct {
|
type ConfigV2 struct {
|
||||||
ModelFamily llm.ModelFamily `json:"model_family"`
|
ModelFamily llm.ModelFamily `json:"model_family"`
|
||||||
ModelType string `json:"model_type"`
|
ModelType string `json:"model_type"`
|
||||||
|
ModelFormat string `json:"model_format"`
|
||||||
FileType string `json:"file_type"`
|
FileType string `json:"file_type"`
|
||||||
RootFS RootFS `json:"rootfs"`
|
RootFS RootFS `json:"rootfs"`
|
||||||
|
|
||||||
@ -335,6 +336,7 @@ func CreateModel(ctx context.Context, name string, path string, fn func(resp api
|
|||||||
|
|
||||||
config.ModelFamily = ggml.ModelFamily()
|
config.ModelFamily = ggml.ModelFamily()
|
||||||
config.ModelType = ggml.ModelType().String()
|
config.ModelType = ggml.ModelType().String()
|
||||||
|
config.ModelFormat = ggml.Name()
|
||||||
config.FileType = ggml.FileType().String()
|
config.FileType = ggml.FileType().String()
|
||||||
|
|
||||||
// reset the file
|
// reset the file
|
||||||
@ -366,9 +368,10 @@ func CreateModel(ctx context.Context, name string, path string, fn func(resp api
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// copie the model metadata
|
// copy the model metadata
|
||||||
config.ModelFamily = source.ModelFamily
|
config.ModelFamily = source.ModelFamily
|
||||||
config.ModelType = source.ModelType
|
config.ModelType = source.ModelType
|
||||||
|
config.ModelFormat = source.ModelFormat
|
||||||
config.FileType = source.FileType
|
config.FileType = source.FileType
|
||||||
|
|
||||||
for _, l := range mf.Layers {
|
for _, l := range mf.Layers {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user