Open Leung-Kam-Ho opened 1 year ago
Interesting, I took a quick look at the json files in the model configuration but did not notice anything wrong.
I'll perform the conversion to try to reproduce. Did you happen to push your converted model to the Hub so I could use it instead?
Seems to be the problem of exporters .
I've tried to convert the same model (MBZUAI/LaMini-GPT-1.5B)again with same method, and somehow there is no error, everything is fine.
But still, I converted a different model Aira-Instruct-774M four times, all passing the validation in exporters, but still error in swift-transformer
pushed the broken model to HuggingFace
@Leung-Kam-Ho Would you mind uploading the succeeded converted model of LaMini-GPT-1.5B to HuggingFace too? Would greatly appreciate it
@teknoalex I uploaded the success conversion LaMini-GPT-1.5B-coreML to HF, check out if you are interested
I use exporters to convert gpt2-xl, gpt2-large and MBZUAI/LaMini-GPT-1.5B with —feature=text-generation , then loaded into swift-chat and try to generate text, gpt2-large and gpt2-xl are fine,
But received error while trying out MBZUAI/LaMini-GPT-1.5B. “”” Error: Error Domain=NSCocoaErrorDomain Code=3840 "JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0." UserInfo={NSDebugDescription=JSON text did not start with array or object and option to allow fragments not set. around line 1, column 0., NSJSONSerializationErrorIndex=0} “””