Upload 6 files
Browse files- text_encoder_2/config.json +24 -0
- text_encoder_2/coreml_model.mlmodelc/analytics/coremldata.bin +3 -0
- text_encoder_2/coreml_model.mlmodelc/coremldata.bin +3 -0
- text_encoder_2/coreml_model.mlmodelc/metadata.json +85 -0
- text_encoder_2/coreml_model.mlmodelc/model.mil +0 -0
- text_encoder_2/coreml_model.mlmodelc/weights/weight.bin +3 -0
text_encoder_2/config.json
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": [
|
3 |
+
"CLIPTextModelWithProjection"
|
4 |
+
],
|
5 |
+
"attention_dropout": 0.0,
|
6 |
+
"bos_token_id": 0,
|
7 |
+
"dropout": 0.0,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_size": 1280,
|
11 |
+
"initializer_factor": 1.0,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 5120,
|
14 |
+
"layer_norm_eps": 1e-05,
|
15 |
+
"max_position_embeddings": 77,
|
16 |
+
"model_type": "clip_text_model",
|
17 |
+
"num_attention_heads": 20,
|
18 |
+
"num_hidden_layers": 32,
|
19 |
+
"pad_token_id": 1,
|
20 |
+
"projection_dim": 1280,
|
21 |
+
"torch_dtype": "float16",
|
22 |
+
"transformers_version": "4.32.0.dev0",
|
23 |
+
"vocab_size": 49408
|
24 |
+
}
|
text_encoder_2/coreml_model.mlmodelc/analytics/coremldata.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:418e4ccfdb60ab6a05ec00b54b81233c9e771d35636c5ff526cd1efaa3c5e1ca
|
3 |
+
size 243
|
text_encoder_2/coreml_model.mlmodelc/coremldata.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0f870abd2c0d1b22ce938f7279b7b64eb80318909ed52020b627153cc00c428c
|
3 |
+
size 919
|
text_encoder_2/coreml_model.mlmodelc/metadata.json
ADDED
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"shortDescription" : "Stable Diffusion generates images conditioned on text and\/or other images as input through the diffusion process. Please refer to https:\/\/arxiv.org\/abs\/2112.10752 for details.",
|
4 |
+
"metadataOutputVersion" : "3.0",
|
5 |
+
"outputSchema" : [
|
6 |
+
{
|
7 |
+
"hasShapeFlexibility" : "0",
|
8 |
+
"isOptional" : "0",
|
9 |
+
"dataType" : "Float32",
|
10 |
+
"formattedType" : "MultiArray (Float32 1 × 77 × 1280)",
|
11 |
+
"shortDescription" : "Hidden states after the encoder layers",
|
12 |
+
"shape" : "[1, 77, 1280]",
|
13 |
+
"name" : "hidden_embeds",
|
14 |
+
"type" : "MultiArray"
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"hasShapeFlexibility" : "0",
|
18 |
+
"isOptional" : "0",
|
19 |
+
"dataType" : "Float32",
|
20 |
+
"formattedType" : "MultiArray (Float32 1 × 1280)",
|
21 |
+
"shortDescription" : "The version of the `last_hidden_state` output after pooling",
|
22 |
+
"shape" : "[1, 1280]",
|
23 |
+
"name" : "pooled_outputs",
|
24 |
+
"type" : "MultiArray"
|
25 |
+
}
|
26 |
+
],
|
27 |
+
"version" : "stabilityai\/stable-diffusion-xl-base-1.0",
|
28 |
+
"modelParameters" : [
|
29 |
+
|
30 |
+
],
|
31 |
+
"author" : "Please refer to the Model Card available at huggingface.co\/stabilityai\/stable-diffusion-xl-base-1.0",
|
32 |
+
"specificationVersion" : 7,
|
33 |
+
"storagePrecision" : "Mixed (Float16, Palettized (6 bits))",
|
34 |
+
"license" : "OpenRAIL++-M (https:\/\/huggingface.co\/stabilityai\/stable-diffusion-xl-base-1.0\/blob\/main\/LICENSE.md)",
|
35 |
+
"mlProgramOperationTypeHistogram" : {
|
36 |
+
"Ios16.cast" : 3,
|
37 |
+
"Ios16.mul" : 32,
|
38 |
+
"Ios16.layerNorm" : 65,
|
39 |
+
"Ios16.constexprLutToDense" : 227,
|
40 |
+
"Stack" : 1,
|
41 |
+
"Transpose" : 128,
|
42 |
+
"Ios16.linear" : 193,
|
43 |
+
"Ios16.add" : 97,
|
44 |
+
"Ios16.matmul" : 64,
|
45 |
+
"Ios16.gelu" : 32,
|
46 |
+
"Ios16.softmax" : 32,
|
47 |
+
"Ios16.gatherNd" : 1,
|
48 |
+
"Ios16.gather" : 1,
|
49 |
+
"Ios16.reshape" : 320,
|
50 |
+
"Ios16.reduceArgmax" : 1
|
51 |
+
},
|
52 |
+
"computePrecision" : "Mixed (Float16, Float32, Int32)",
|
53 |
+
"isUpdatable" : "0",
|
54 |
+
"availability" : {
|
55 |
+
"macOS" : "13.0",
|
56 |
+
"tvOS" : "16.0",
|
57 |
+
"visionOS" : "1.0",
|
58 |
+
"watchOS" : "9.0",
|
59 |
+
"iOS" : "16.0",
|
60 |
+
"macCatalyst" : "16.0"
|
61 |
+
},
|
62 |
+
"modelType" : {
|
63 |
+
"name" : "MLModelType_mlProgram"
|
64 |
+
},
|
65 |
+
"inputSchema" : [
|
66 |
+
{
|
67 |
+
"hasShapeFlexibility" : "0",
|
68 |
+
"isOptional" : "0",
|
69 |
+
"dataType" : "Float32",
|
70 |
+
"formattedType" : "MultiArray (Float32 1 × 77)",
|
71 |
+
"shortDescription" : "The token ids that represent the input text",
|
72 |
+
"shape" : "[1, 77]",
|
73 |
+
"name" : "input_ids",
|
74 |
+
"type" : "MultiArray"
|
75 |
+
}
|
76 |
+
],
|
77 |
+
"userDefinedMetadata" : {
|
78 |
+
"com.github.apple.coremltools.source_dialect" : "TorchScript",
|
79 |
+
"com.github.apple.coremltools.source" : "torch==2.2.0",
|
80 |
+
"com.github.apple.coremltools.version" : "7.2"
|
81 |
+
},
|
82 |
+
"generatedClassName" : "Stable_Diffusion_version_stabilityai_stable_diffusion_xl_base_1_0_text_encoder_2",
|
83 |
+
"method" : "predict"
|
84 |
+
}
|
85 |
+
]
|
text_encoder_2/coreml_model.mlmodelc/model.mil
ADDED
The diff for this file is too large to render.
See raw diff
|
|
text_encoder_2/coreml_model.mlmodelc/weights/weight.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:abb9b12c3188411a0999c6a8e91e2f90a9308c4bbb5c9e969986349eeffbce75
|
3 |
+
size 600595584
|