Text Generation
Transformers
PyTorch
mosaic_gpt
custom_code

SyntaxError: invalid syntax due to (self.logit_scale=)

#6
by feizheng - opened

Hi, I tried AutoModelForCausalLM.from_pretrained('mosaicml/mpt-1b-redpajama-200b', trust_remote_code=True) but ran into the error in the title. My transformers version is 4.30.0. Anything I might want to double check? Thanks.

You need to update python to 3.8+, this is the new fstring syntax added. Otherwise you need to manually rewrite them back, e.g.: {a=} --> a={a}

Sign up or log in to comment