Comments (2)
Sorry for taking so long to address this. The fix is in #667 if you want to use it before it is merged.
from mlx-examples.
I am able to reproduce the error above.
I can also generate a similar error, but it's not related to the cfg. This is the smallest prompt I could craft to force this error. Note that it's "prompt only", not parameters are passed.
python txt2image.py "A stunning vision of a Subterranean Sci-Fi village hidden within a Far Side Observatory Zone. The artstyle features a fusion of retro-futuristic elements reminiscent of Syd Mead's renowned concept art, combined with the surrealistic charm of Salvador Dali's classic paintings. The color palette consists of rich, vibrant hues inspired by the neon lights of Blade Runner, infused with the cool, atmospheric tones of 2001: A Space Odyssey."
0%| | 0/2 [00:00<?, ?it/s]
Traceback (most recent call last):
File "/Users/ovid/projects/llms/mlx-examples/stable_diffusion/txt2image.py", line 65, in <module>
for x_t in tqdm(latents, total=args.steps):
File "/Users/ovid/miniconda3/lib/python3.11/site-packages/tqdm/std.py", line 1178, in __iter__
for obj in iterable:
File "/Users/ovid/projects/llms/mlx-examples/stable_diffusion/stable_diffusion/__init__.py", line 245, in generate_latents
conditioning, pooled_conditioning = self._get_text_conditioning(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ovid/projects/llms/mlx-examples/stable_diffusion/stable_diffusion/__init__.py", line 217, in _get_text_conditioning
conditioning_1 = self.text_encoder_1(tokens_1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ovid/projects/llms/mlx-examples/stable_diffusion/stable_diffusion/clip.py", line 94, in __call__
x = x + self.position_embedding.weight[:N]
~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ValueError: Shapes (1,90,768) and (77,768) cannot be broadcast.
I have the latest mlx-examples repo and ensured I have all of the latest requirements in stalled.
from mlx-examples.
Related Issues (20)
- `trust_remote_code` needed to convert InternLM-2.5 20b model HOT 2
- MNIST test accuracies differ drastically with --gpu flag on and off on Apple M3 HOT 2
- [Feature Request] MLX_lm: add support for GLM4 family of language models HOT 1
- Weird text generation with llama.py HOT 3
- Whisper stalls on MP3 HOT 6
- CLIP: preprocess HOT 1
- Regression crash?: TypeError: 'NoneType' object is not subscriptable HOT 7
- KeyError: 'llama.context_length' HOT 2
- Converting Command R Plus to 4 bits produces garbage output HOT 9
- It's possible to install mlx-lm with dockerfile?
- [ Suggestion ] Add KV cache features to the Python API
- using generate() yields unusable response with llama 3.1 instruct 4bit HOT 2
- linting / type definitions
- is mlx-examples/llms/CONTRIBUTING.md still up-to-date? HOT 1
- Possible bug with prompt cache HOT 3
- [Feature Request] MLX_lm.cache_prompt | Save cached_prompt as plaintext in the kv-cache-file metadata
- I tried madlad400, but there is a problem with the output if it is float16 HOT 2
- details on scale parameter for LoRA HOT 4
- Learning rate approaches warmup_init value HOT 2
- Adding an equivalent pytorch or tensorflow of the models for true benchmark
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlx-examples.