How use other flux base model ?
Opened this issue ยท 1 comments
I tried using mflux LoRA on my M3 MacBook, and everything worked smoothly. It's an impressive piece of work !!!๐
It's so satisfying to see the MacBook's GPU working at full capacity in asitop
.
But can i use mflux to run flux base model like https://huggingface.co/Shakker-Labs/AWPortrait-FL ?
i dowload the all the AWPortrait-FL files in
.
โโโ text_encoder
โ โโโ model.safetensors
โโโ text_encoder_2
โ โโโ model-00001-of-00002.safetensors
โ โโโ model-00002-of-00002.safetensors
โโโ tokenizer
โ โโโ merges.txt
โ โโโ special_tokens_map.json
โ โโโ tokenizer_config.json
โ โโโ vocab.json
โโโ tokenizer_2
โ โโโ special_tokens_map.json
โ โโโ spiece.model
โ โโโ tokenizer.json
โ โโโ tokenizer_config.json
โโโ transformer
โ โโโ diffusion_pytorch_model-00001-of-00003.safetensors
โ โโโ diffusion_pytorch_model-00002-of-00003.safetensors
โ โโโ diffusion_pytorch_model-00003-of-00003.safetensors
โโโ vae
โโโ diffusion_pytorch_model.safetensors
and i try
python main.py \
--prompt " long prompt " \
--model dev \
--path "<Path-to-AWPortrait-FL-dir>" \
--steps 2 \
--seed 42 \
-q 8
mlx/utils.py", line 182, in tree_unflatten int(tree[0][0].split(".", maxsplit=1)[0])
IndexError: list index out of range
@douenergy Thank you very much! Haha yes, it is indeed satisfying, you rarely hear the fans on modern MacBooks these days unless under heavy workloads like these :)
Regarding the issue, I will have to look into this in more detail. From the structure it looks to be compatible, but something is obviously not matching.
Generally, if it works with Diffusers, the idea is that it should work with MFLUX, so this is a good example to learn from.