Gustavosta commited on
Commit
6ce4e46
1 Parent(s): ac13a58

Update model

Browse files
Files changed (5) hide show
  1. README.md +25 -3
  2. config.json +4 -6
  3. pytorch_model.bin +2 -2
  4. tokenizer_config.json +1 -1
  5. training_args.bin +1 -1
README.md CHANGED
@@ -1,3 +1,25 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # MagicPrompt - Stable Diffusion
2
+
3
+ This is a model from the MagicPrompt series of models, which are [GPT-2](https://huggingface.co/gpt2) models intended to generate prompt texts for imaging AIs, in this case: [Stable Diffusion](https://huggingface.co/CompVis/stable-diffusion).
4
+
5
+ ## 🖼️ Here's an example:
6
+
7
+ <img src="https://files.catbox.moe/ac3jq7.png">
8
+
9
+ This model was trained with 150,000 steps and a set of about 80,000 data filtered and extracted from the image finder for Stable Diffusion: "[Lexica.art](https://lexica.art/)". It was a little difficult to extract the data, since the search engine still doesn't have a public API without being protected by cloudflare, but if you want to take a look at the original dataset, you can have a look here: [Gustavosta/MagicPrompt-Dalle](https://huggingface.co/Gustavosta/MagicPrompt-Dalle).
10
+
11
+ If you want to test the model with a demo, you can go to: "[Gustavosta/spaces/MagicPrompt-Dalle](https://huggingface.co/Gustavosta/spaces/MagicPrompt-Stable_diffusion)".
12
+
13
+ ## 💻 You can see other MagicPrompt models:
14
+
15
+ - For Dall-E 2: [Gustavosta/MagicPrompt-Dalle](https://huggingface.co/Gustavosta/MagicPrompt-Dalle)
16
+ - For Midjourney: [Gustavosta/MagicPrompt-Midourney](https://huggingface.co/Gustavosta/MagicPrompt-Midjourney)
17
+ - MagicPrompt full: [Gustavosta/MagicPrompt](https://huggingface.co/Gustavosta/MagicPrompt)
18
+
19
+ ## ⚖️ Licence:
20
+
21
+ [MIT](https://huggingface.co/models?license=license:mit)
22
+
23
+ When using this model, please credit: [Gustavosta](https://huggingface.co/Gustavosta)
24
+
25
+ **Thanks for reading this far! :)**
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "gpt2-medium",
3
  "activation_function": "gelu_new",
4
  "architectures": [
5
  "GPT2LMHeadModel"
@@ -12,13 +12,11 @@
12
  "layer_norm_epsilon": 1e-05,
13
  "model_type": "gpt2",
14
  "n_ctx": 1024,
15
- "n_embd": 1024,
16
- "n_head": 16,
17
  "n_inner": null,
18
- "n_layer": 24,
19
  "n_positions": 1024,
20
- "n_special": 0,
21
- "predict_special_tokens": true,
22
  "reorder_and_upcast_attn": false,
23
  "resid_pdrop": 0.1,
24
  "scale_attn_by_inverse_layer_idx": false,
 
1
  {
2
+ "_name_or_path": "gpt2",
3
  "activation_function": "gelu_new",
4
  "architectures": [
5
  "GPT2LMHeadModel"
 
12
  "layer_norm_epsilon": 1e-05,
13
  "model_type": "gpt2",
14
  "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
  "n_inner": null,
18
+ "n_layer": 12,
19
  "n_positions": 1024,
 
 
20
  "reorder_and_upcast_attn": false,
21
  "resid_pdrop": 0.1,
22
  "scale_attn_by_inverse_layer_idx": false,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:0798154f31c6204bdcd13e9a1852335207cba11624d57c346aaff358fcc317d6
3
- size 1444566873
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:749116704f061992e879013cb4433f9e093f385dd5a807b20ac7d226c5f53926
3
+ size 510396521
tokenizer_config.json CHANGED
@@ -3,7 +3,7 @@
3
  "bos_token": "<|endoftext|>",
4
  "eos_token": "<|endoftext|>",
5
  "model_max_length": 1024,
6
- "name_or_path": "gpt2-medium",
7
  "special_tokens_map_file": null,
8
  "tokenizer_class": "GPT2Tokenizer",
9
  "unk_token": "<|endoftext|>"
 
3
  "bos_token": "<|endoftext|>",
4
  "eos_token": "<|endoftext|>",
5
  "model_max_length": 1024,
6
+ "name_or_path": "gpt2",
7
  "special_tokens_map_file": null,
8
  "tokenizer_class": "GPT2Tokenizer",
9
  "unk_token": "<|endoftext|>"
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5c9cbb0e886fec856200e407be281337a89e1673ff724aa10d72e571f508489e
3
  size 3375
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f8d232c6d8bad47a89e6e1288360216bdb7652ddaa31c885db847aa20b29fd85
3
  size 3375