Text-to-Image
Diffusers
ONNX
jammmmm commited on
Commit
39bdb52
·
1 Parent(s): 9ceeaa6
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ *.onnx.data filter=lfs diff=lfs merge=lfs -text
37
+ c74fd389-f55d-11ef-8a5e-f0a65413afc1 filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: stabilityai-ai-community
4
+ license_link: https://stability.ai/community-license-agreement
5
+ base_model:
6
+ - stabilityai/sdxl-turbo
7
+ pipeline_tag: text-to-image
8
+ library_name: diffusers
9
+ ---
10
+
11
+ # stabilityai/sdxl-turbo - AMD Optimized ONNX
12
+
13
+ This repository hosts the **AMD Optimized version of SDXL-Turbo** created in collaboration with [AMD](https://huggingface.co/amd).
14
+
15
+ ## Model Description
16
+ Refer to the [SDXL-Turbo Model card](https://huggingface.co/stabilityai/sdxl-turbo) for more details.
17
+
18
+ ## _io32 vs. _io16
19
+ * _io32: Model input is fp32, model will convert the input to fp16, perform ops in fp16 and write the final result in fp32
20
+
21
+ * _io16: Model input is fp16, perform ops in fp16 and write the final result in fp16
22
+
23
+ ## Running
24
+
25
+ Use Amuse GUI application to run it: https://www.amuse-ai.com/
26
+ use *_io32 version to run with the Amuse application
27
+
28
+ ## Inference Result
29
+ ![Intro Image](sample2.png)
30
+ Prompt="a big cat"
31
+
32
+ ### **License**
33
+
34
+ * Community License: Free for research, non-commercial, and commercial use for organizations or individuals with less than $1M in total annual revenue. More details can be found in the [Community License Agreement](https://stability.ai/community-license-agreement). Read more at [https://stability.ai/license](https://stability.ai/license).
35
+ * For individuals and organizations with annual revenue above $1M: please [contact us](https://stability.ai/enterprise) to get an Enterprise License.
36
+
37
+ ### **Model Sources**
38
+
39
+ For research purposes, we recommend our generative-models Github repository ([https://github.com/Stability-AI/generative-models](https://github.com/Stability-AI/generative-models)), which implements the most popular diffusion frameworks (both training and inference).
40
+
41
+ Repository: [https://github.com/Stability-AI/generative-models](https://github.com/Stability-AI/generative-models)
42
+
43
+ SDXL Turbo Paper: [https://stability.ai/research/adversarial-diffusion-distillation](https://stability.ai/research/adversarial-diffusion-distillation)
44
+
45
+ ### **Training Data and Strategy**
46
+
47
+ This model was trained on a wide variety of data, including publicly available data.
48
+
49
+ ## **Uses**
50
+
51
+ ### **Intended Uses**
52
+
53
+ Intended uses include the following:
54
+
55
+ * Generation of artworks and use in design and other artistic processes.
56
+ * Applications in educational or creative tools.
57
+ * Research on generative models, including understanding the limitations of generative models.
58
+
59
+ All uses of the model must be in accordance with our [Acceptable Use Policy](https://stability.ai/use-policy).
60
+
61
+ ### **Out-of-Scope Uses**
62
+
63
+ The model was not trained to be factual or true representations of people or events. As such, using the model to generate such content is out-of-scope of the abilities of this model.
64
+
65
+ ## **Safety**
66
+
67
+ As part of our safety-by-design and responsible AI deployment approach, we take deliberate measures to ensure Integrity starts at the early stages of development. We implement safety measures throughout the development of our models. We have implemented safety mitigations that are intended to reduce the risk of certain harms, however we recommend that developers conduct their own testing and apply additional mitigations based on their specific use cases.
68
+ For more about our approach to Safety, please visit our [Safety page](https://stability.ai/safety).
69
+
70
+ ### **Integrity Evaluation**
71
+
72
+ Our integrity evaluation methods include structured evaluations and red-teaming testing for certain harms. Testing was conducted primarily in English and may not cover all possible harms.
73
+
74
+ ### **Risks identified and mitigations:**
75
+
76
+ * Harmful content: We have used filtered data sets when training our models and implemented safeguards that attempt to strike the right balance between usefulness and preventing harm. However, this does not guarantee that all possible harmful content has been removed. TAll developers and deployers should exercise caution and implement content safety guardrails based on their specific product policies and application use cases.
77
+ * Misuse: Technical limitations and developer and end-user education can help mitigate against malicious applications of models. All users are required to adhere to our [Acceptable Use Policy](https://stability.ai/use-policy), including when applying fine-tuning and prompt engineering mechanisms. Please reference the Stability AI Acceptable Use Policy for information on violative uses of our products.
78
+ * Privacy violations: Developers and deployers are encouraged to adhere to privacy regulations with techniques that respect data privacy.
79
+
80
+ ### **Contact**
81
+
82
+ Please report any issues with the model or contact us:
83
+
84
+ * Safety issues: [email protected]
85
+ * Security issues: [email protected]
86
+ * Privacy issues: [email protected]
87
+ * License and general: [https://stability.ai/license](https://stability.ai/license)
88
+ * Enterprise license: [https://stability.ai/enterprise](https://stability.ai/enterprise)
sample.png ADDED
sample2.png ADDED
stable-diffusion-xl-turbo-io32/config.json ADDED
File without changes
stable-diffusion-xl-turbo-io32/scheduler/scheduler_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_class_name": "EulerAncestralDiscreteScheduler",
3
+ "_diffusers_version": "0.32.2",
4
+ "beta_end": 0.012,
5
+ "beta_schedule": "scaled_linear",
6
+ "beta_start": 0.00085,
7
+ "clip_sample": false,
8
+ "interpolation_type": "linear",
9
+ "num_train_timesteps": 1000,
10
+ "prediction_type": "epsilon",
11
+ "rescale_betas_zero_snr": false,
12
+ "sample_max_value": 1.0,
13
+ "set_alpha_to_one": false,
14
+ "skip_prk_steps": true,
15
+ "steps_offset": 1,
16
+ "timestep_spacing": "trailing",
17
+ "trained_betas": null
18
+ }
stable-diffusion-xl-turbo-io32/text_encoder/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6aaffe29a555ca75118f86a443d8b043d9336245a02a8d40e25f24a97b9fe7ea
3
+ size 246475546
stable-diffusion-xl-turbo-io32/text_encoder_2/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f279bfa8445b6033f3ea78a4d0fe4ecf05e066d7b7d7c282b71d0e2d8015cae
3
+ size 1055772
stable-diffusion-xl-turbo-io32/text_encoder_2/model.onnx.data ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d116c3407ada3974efe30553f5bfc7b249eac568b989ec03254a0415ae17d04
3
+ size 452999680
stable-diffusion-xl-turbo-io32/tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
stable-diffusion-xl-turbo-io32/tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|endoftext|>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<|endoftext|>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
stable-diffusion-xl-turbo-io32/tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "49406": {
5
+ "content": "<|startoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "49407": {
13
+ "content": "<|endoftext|>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ }
20
+ },
21
+ "bos_token": "<|startoftext|>",
22
+ "clean_up_tokenization_spaces": true,
23
+ "do_lower_case": true,
24
+ "eos_token": "<|endoftext|>",
25
+ "errors": "replace",
26
+ "model_max_length": 77,
27
+ "pad_token": "<|endoftext|>",
28
+ "tokenizer_class": "CLIPTokenizer",
29
+ "unk_token": "<|endoftext|>"
30
+ }
stable-diffusion-xl-turbo-io32/tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
stable-diffusion-xl-turbo-io32/tokenizer_2/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
stable-diffusion-xl-turbo-io32/tokenizer_2/special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|startoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "!",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<|endoftext|>",
25
+ "lstrip": false,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
stable-diffusion-xl-turbo-io32/tokenizer_2/tokenizer_config.json ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "!",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "49406": {
13
+ "content": "<|startoftext|>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "49407": {
21
+ "content": "<|endoftext|>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ }
28
+ },
29
+ "bos_token": "<|startoftext|>",
30
+ "clean_up_tokenization_spaces": true,
31
+ "do_lower_case": true,
32
+ "eos_token": "<|endoftext|>",
33
+ "errors": "replace",
34
+ "model_max_length": 77,
35
+ "pad_token": "!",
36
+ "tokenizer_class": "CLIPTokenizer",
37
+ "unk_token": "<|endoftext|>"
38
+ }
stable-diffusion-xl-turbo-io32/tokenizer_2/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
stable-diffusion-xl-turbo-io32/unet/c74fd389-f55d-11ef-8a5e-f0a65413afc1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:94301ddd051bab5155eb2cf7cfcddbf203bb10438c9a9b16e777d41feca3ec1d
3
+ size 5134903040
stable-diffusion-xl-turbo-io32/unet/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aca771d62bf6bfb8e2e087d358742c904477021b8cf4ce94803b85850dacaa5c
3
+ size 1433826
stable-diffusion-xl-turbo-io32/vae_decoder/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:76763e387cd037a2ebe1d9142ddc61cff30b6c874c7d02268d0344df3529126d
3
+ size 102364513
stable-diffusion-xl-turbo-io32/vae_encoder/model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d43513d901ce5f568d967d976d9c6eb2fd44f4ea8b0c6b5cc8288d62af80dfcd
3
+ size 68392048