File tree 1 file changed +114
-0
lines changed 1 file changed +114
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " Model Artifact Configuration Schema" ,
3
+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
4
+ "$id" : " https://github.com/CloudNativeAI/model-spec/model-config" ,
5
+ "type" : " object" ,
6
+ "properties" : {
7
+ "descriptor" : {
8
+ "$ref" : " #/$defs/ModelDescriptor"
9
+ },
10
+ "modelfs" : {
11
+ "$ref" : " #/$defs/ModelFS"
12
+ },
13
+ "config" : {
14
+ "$ref" : " #/$defs/ModelConfig"
15
+ }
16
+ },
17
+ "additionalProperties" : false ,
18
+ "required" : [
19
+ " descriptor" ,
20
+ " modelfs" ,
21
+ " config"
22
+ ],
23
+ "$defs" : {
24
+ "ModelConfig" : {
25
+ "type" : " object" ,
26
+ "properties" : {
27
+ "architecture" : {
28
+ "type" : " string"
29
+ },
30
+ "format" : {
31
+ "type" : " string"
32
+ },
33
+ "paramSize" : {
34
+ "type" : " string"
35
+ },
36
+ "precision" : {
37
+ "type" : " string"
38
+ },
39
+ "quantization" : {
40
+ "type" : " string"
41
+ }
42
+ },
43
+ "additionalProperties" : false
44
+ },
45
+ "ModelDescriptor" : {
46
+ "type" : " object" ,
47
+ "properties" : {
48
+ "createdAt" : {
49
+ "type" : " string" ,
50
+ "format" : " date-time"
51
+ },
52
+ "authors" : {
53
+ "type" : " array" ,
54
+ "items" : {
55
+ "type" : " string"
56
+ }
57
+ },
58
+ "family" : {
59
+ "type" : " string"
60
+ },
61
+ "name" : {
62
+ "type" : " string"
63
+ },
64
+ "docURL" : {
65
+ "type" : " string"
66
+ },
67
+ "sourceURL" : {
68
+ "type" : " string"
69
+ },
70
+ "version" : {
71
+ "type" : " string"
72
+ },
73
+ "revision" : {
74
+ "type" : " string"
75
+ },
76
+ "vendor" : {
77
+ "type" : " string"
78
+ },
79
+ "licenses" : {
80
+ "type" : " array" ,
81
+ "items" : {
82
+ "type" : " string"
83
+ }
84
+ },
85
+ "title" : {
86
+ "type" : " string"
87
+ },
88
+ "description" : {
89
+ "type" : " string"
90
+ }
91
+ },
92
+ "additionalProperties" : false
93
+ },
94
+ "ModelFS" : {
95
+ "type" : " object" ,
96
+ "properties" : {
97
+ "type" : {
98
+ "type" : " string"
99
+ },
100
+ "diff_ids" : {
101
+ "type" : " array" ,
102
+ "items" : {
103
+ "type" : " string"
104
+ }
105
+ }
106
+ },
107
+ "additionalProperties" : false ,
108
+ "required" : [
109
+ " type" ,
110
+ " diff_ids"
111
+ ]
112
+ }
113
+ }
114
+ }
You can’t perform that action at this time.
0 commit comments