model = AutoModelForCausalLM.from_pretrained(“EleutherAI/gpt-j-6B”, torch_dtype=torch.float32)

results in a

keyerror ‘gptj’

when attempting to download the checkpoint. running transformers library version 4.10.2
similar to topic:
  
    
    
    How to get "EleutherAI/gpt-j-6B" working? Models
  
  
    I’m trying to run the EleutherAI/gpt-j-6B model, but with no luck. The code 
model = AutoModelForCausalLM.from_pretrained("EleutherAI/gpt-j-6B")

returns the following error: 
Traceback (most recent call last):
  File "gptjtest.py", line 18, in <module>
    model = AutoModelForCausalLM.from_pretrained("gpt-j-6B")
  File "/home/marcin/miniconda3/envs/py37/lib/python3.7/site-packages/transformers/models/auto/auto_factory.py", line 383, in from_pretrained
    pretrained_model_name_or_path, return_u…
  


github pull request seems to have been merged already.