prompt-engineering
ml-stable-diffusion
prompt-engineering | ml-stable-diffusion | |
---|---|---|
18 | 45 | |
7,932 | 16,111 | |
1.7% | 0.7% | |
5.1 | 7.4 | |
6 months ago | 25 days ago | |
Python | ||
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
prompt-engineering
- Ask HN: Any good collection of writing prompts for GPT 3.5/4?
-
Show HN: LLM Agent Paper List
An agent is a style of prompt that lets LLMs act as reasoning engines. It's also known as the ReAct pattern (which engineers are avoiding using for namespace collision reasions).
You can read a good intro example here: https://github.com/brexhq/prompt-engineering#react
- FLaNK Stack Weekly for 20 June 2023
-
What are your long-term career goals?
Well, if developers get replaced by AI, then who are the managers going to manage :). I personally don't think AI is just going to replace us. The way we work will continue to change as new AI tools come out. I'm taking time to tinker with new tools and seeing how others do as well (e.g., I found Brex's tips and tricks for working with LLMs very insightful: https://github.com/brexhq/prompt-engineering).
-
A Prompt Pattern Catalog to Enhance Prompt Engineering with ChatGPT
I recognize there's plenty of catnip here when it comes to calling this "engineering" or not, however, whatever you want to call it (prompt fiddling?), the techniques are crucial if you want to achieve reasonably consistent output from current-state LLMs. As models improve concerns about context window limitations will be reduced and it will be easier to discern user intent.
These are good straight-to-the-point guides:
- Prompt Engineering by BrexHQ: https://github.com/brexhq/prompt-engineering
- OpenAI guidance: https://help.openai.com/en/articles/6654000-best-practices-f...
- https://devblogs.microsoft.com/dotnet/gpt-prompt-engineering...
- (great examples): https://www.deeplearning.ai/short-courses/chatgpt-prompt-eng...
tl;dr:
-
(2/2) May 2023
Brex's Prompt Engineering Guide (https://github.com/brexhq/prompt-engineering)
- GitHub - brexhq/prompt-engineering: Tips and tricks for working with Large Language Models like OpenAI's GPT-4.
- Brex’s Prompt Engineering Guide
ml-stable-diffusion
-
Show HN: Run Stable Diffusion Directly on iPhone
Not sure how that got in here. Apple released CoreML Stable Diffusion library a little over a year ago [1]. Hugging Face released their version of the example app for the CoreML Stable Diffusion library [2].
The app should be able to run on iPhone 14 Pro, I believe the requirements is about 6-8Gb of RAM. And I was not able to run it on iPhone 13 Mini, because it has only 4Gb of RAM.
- [1] https://github.com/apple/ml-stable-diffusion
-
Apple releases MLX; has working Stable Diffusion example
Where are you seeing a Stable Diffusion example? I'm familiar with Apple's CoreML Implementation of StableDiffusion, but is there something else in the SD world available for download now as part of MLX?
-
Stable Diffusion XL on iPhone with Core ML
Other features and improvements to the repo https://github.com/apple/ml-stable-diffusion
-
FLaNK Stack Weekly for 20 June 2023
M1! https://github.com/apple/ml-stable-diffusion
- Apple Introduces M2 Ultra with up to 192GB Unified Memory - LLM powerhouse?
-
Need help choosing between two laptops
M2 MBA can run Stable Diffusion and LLaMa comfortably, which means generating your potential game/image asset locally. They're pretty much impractical in 7340.
-
Speed Is All You Need: On-Device Acceleration of Large Diffusion Models
Interestingly these are OpenCL kernels so in theory some of the optimizations might run out-of-the-box on CPUs.
It would be instructive to compare their speedups on the iPhone to the Apple CoreML implementation: https://github.com/apple/ml-stable-diffusion
-
Is it worth buying a used M1 Mac for stable diffusion when you have iPad M1 but Intel Mac
Stable Diffusion runs great on my M1 Macs. The Draw Things app makes it really easy to run too. You also can’t disregard that Apple’s M chips actually have dedicated neural processing for ML/AI. This actual makes a Mac more affordable in this category because you don’t need to purchase a beefy graphics card. Not to mention that Apple has even optimized their software specifically for Stable Diffusion (related GitHub). Draw Things can take advantage of this. There’s a few guides to running the web UI on M1 too. I prefer the Draw Things app because of how easy it is to use, but the web UI is also nice because of all of the plugins and workflows that the community has built over time.
-
Stable diffusion for Apple silicon
LINKS: ml-stable-diffusion: https://github.com/apple/ml-stable-diffusion Diffusers (HuggingFace Mac App): https://apps.apple.com/app/diffusers/id1666309574?mt=12
-
Apple: Transformer architecture optimized for Apple Silicon
So, is Stable Diffusion working finally on TPU or not? DiffusionBee uses GPU and running this https://github.com/apple/ml-stable-diffusion with CPU_AND_NE just segfaults
What are some alternatives?
promptfoo - Test your prompts, models, and RAGs. Catch regressions and improve prompt quality. LLM evals for OpenAI, Azure, Anthropic, Gemini, Mistral, Llama, Bedrock, Ollama, and other local & private models with CI/CD integration.
MochiDiffusion - Run Stable Diffusion on Mac natively
Prompt-Engineering-Guide - 🐙 Guides, papers, lecture, notebooks and resources for prompt engineering
ml-ane-transformers - Reference implementation of the Transformer architecture optimized for Apple Neural Engine (ANE)
FinGPT - FinGPT: Open-Source Financial Large Language Models! Revolutionize 🔥 We release the trained model on HuggingFace.
modelscope - ModelScope: bring the notion of Model-as-a-Service to life.
tree-of-thoughts - Plug in and Play Implementation of Tree of Thoughts: Deliberate Problem Solving with Large Language Models that Elevates Model Reasoning by atleast 70%
pulsar-recipes - A StreamNative library containing a collection of recipes that are implemented on top of the Pulsar client to provide higher-level functionality closer to the application domain.
chathub - All-in-one chatbot client
fast-stable-diffusion - fast-stable-diffusion + DreamBooth
canal - 阿里巴巴 MySQL binlog 增量订阅&消费组件
stable-diffusion-webui - Stable Diffusion web UI