ydshieh commited on
Commit
1a9cd94
1 Parent(s): d79c24a

fix model download

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -21,7 +21,7 @@ filepath = hf_hub_download("flax-community/vit-gpt2", "checkpoints/ckpt_5/config
21
  shutil.copyfile(filepath, os.path.join(model_dir, 'config.json'))
22
  # copy model file
23
  filepath = hf_hub_download("flax-community/vit-gpt2", "checkpoints/ckpt_5/flax_model.msgpack")
24
- shutil.copyfile(filepath, os.path.join('flax_model.msgpack'))
25
 
26
  flax_vit_gpt2_lm = FlaxViTGPT2LMForConditionalGeneration.from_pretrained(model_dir)
27
 
 
21
  shutil.copyfile(filepath, os.path.join(model_dir, 'config.json'))
22
  # copy model file
23
  filepath = hf_hub_download("flax-community/vit-gpt2", "checkpoints/ckpt_5/flax_model.msgpack")
24
+ shutil.copyfile(filepath, os.path.join(model_dir, 'flax_model.msgpack'))
25
 
26
  flax_vit_gpt2_lm = FlaxViTGPT2LMForConditionalGeneration.from_pretrained(model_dir)
27