apple / ml-stable-diffusion

Stable Diffusion with Core ML on Apple Silicon
MIT License
16.74k stars 934 forks source link

Why .mlpackage format no need the vocab.json & merges.txt file? #274

Open TimYao18 opened 1 year ago

TimYao18 commented 1 year ago

Hi all,

I want to know why the vocab.json and merges.txt are the same ones from the converting process? If we use a different CLIP model or Text Encoder model, shouldn't it be different?

TimYao18 commented 1 year ago

Its about the transformer. https://github.com/huggingface/transformers/issues/1083

TimYao18 commented 11 months ago

Sorry but I use this issue for questioning:

Why .mlpackage format no need the vocab.json & merges.txt file?

I found .mlmodelc and diffusers format both need these files but .mlpackage didn't.

jrittvo commented 11 months ago

It is possible that those files are stored inside the text encoder piece of the .mlpackage.