Instructions to use QuantFactory/MagicPrompt-Stable-Diffusion-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use QuantFactory/MagicPrompt-Stable-Diffusion-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/MagicPrompt-Stable-Diffusion-GGUF", filename="MagicPrompt-Stable-Diffusion.Q2_K.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/MagicPrompt-Stable-Diffusion-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/MagicPrompt-Stable-Diffusion-GGUF with Ollama:
ollama run hf.co/QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/MagicPrompt-Stable-Diffusion-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantFactory/MagicPrompt-Stable-Diffusion-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for QuantFactory/MagicPrompt-Stable-Diffusion-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/MagicPrompt-Stable-Diffusion-GGUF to start chatting
- Docker Model Runner
How to use QuantFactory/MagicPrompt-Stable-Diffusion-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/MagicPrompt-Stable-Diffusion-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/MagicPrompt-Stable-Diffusion-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.MagicPrompt-Stable-Diffusion-GGUF-Q4_K_M
List all available models
lemonade list
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
---
|
| 3 |
+
|
| 4 |
+
license: mit
|
| 5 |
+
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
[](https://hf.co/QuantFactory)
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
# QuantFactory/MagicPrompt-Stable-Diffusion-GGUF
|
| 12 |
+
This is quantized version of [Gustavosta/MagicPrompt-Stable-Diffusion](https://huggingface.co/Gustavosta/MagicPrompt-Stable-Diffusion) created using llama.cpp
|
| 13 |
+
|
| 14 |
+
# Original Model Card
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# MagicPrompt - Stable Diffusion
|
| 18 |
+
|
| 19 |
+
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).
|
| 20 |
+
|
| 21 |
+
## 🖼️ Here's an example:
|
| 22 |
+
|
| 23 |
+
<img src="https://files.catbox.moe/ac3jq7.png">
|
| 24 |
+
|
| 25 |
+
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: [datasets/Gustavosta/Stable-Diffusion-Prompts](https://huggingface.co/datasets/Gustavosta/Stable-Diffusion-Prompts).
|
| 26 |
+
|
| 27 |
+
If you want to test the model with a demo, you can go to: "[spaces/Gustavosta/MagicPrompt-Stable-Diffusion](https://huggingface.co/spaces/Gustavosta/MagicPrompt-Stable-Diffusion)".
|
| 28 |
+
|
| 29 |
+
## 💻 You can see other MagicPrompt models:
|
| 30 |
+
|
| 31 |
+
- For Dall-E 2: [Gustavosta/MagicPrompt-Dalle](https://huggingface.co/Gustavosta/MagicPrompt-Dalle)
|
| 32 |
+
- For Midjourney: [Gustavosta/MagicPrompt-Midourney](https://huggingface.co/Gustavosta/MagicPrompt-Midjourney) **[⚠️ In progress]**
|
| 33 |
+
- MagicPrompt full: [Gustavosta/MagicPrompt](https://huggingface.co/Gustavosta/MagicPrompt) **[⚠️ In progress]**
|
| 34 |
+
|
| 35 |
+
## ⚖️ Licence:
|
| 36 |
+
|
| 37 |
+
[MIT](https://huggingface.co/models?license=license:mit)
|
| 38 |
+
|
| 39 |
+
When using this model, please credit: [Gustavosta](https://huggingface.co/Gustavosta)
|
| 40 |
+
|
| 41 |
+
**Thanks for reading this far! :)**
|
| 42 |
+
|