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
QuantFactory/MagicPrompt-Stable-Diffusion-GGUF
This is quantized version of Gustavosta/MagicPrompt-Stable-Diffusion created using llama.cpp
Original Model Card
MagicPrompt - Stable Diffusion
This is a model from the MagicPrompt series of models, which are GPT-2 models intended to generate prompt texts for imaging AIs, in this case: Stable Diffusion.
๐ผ๏ธ Here's an example:
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". 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.
If you want to test the model with a demo, you can go to: "spaces/Gustavosta/MagicPrompt-Stable-Diffusion".
๐ป You can see other MagicPrompt models:
- For Dall-E 2: Gustavosta/MagicPrompt-Dalle
- For Midjourney: Gustavosta/MagicPrompt-Midourney [โ ๏ธ In progress]
- MagicPrompt full: Gustavosta/MagicPrompt [โ ๏ธ In progress]
โ๏ธ Licence:
When using this model, please credit: Gustavosta
Thanks for reading this far! :)
- Downloads last month
- 171
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit