How to arrange the file ‘models’???

Open
#58 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start with README and generate.sh, then inspect the tokenizer.from_pretrained call shown in the issue and how args.tokenizer_path is passed. Verify the expected model-directory layout and cache path; done when generate.sh can locate Salesforce/codet5-base without the connection error.

Written by the indexing model from the issue text.

Description

I have downloaded all the models mentioned in the README, and for one model, I've created a special folder for it, like "CodeT5-large/". But when I run the script 'generate.sh', I received the “ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on.” for this line:
tokenizer = RobertaTokenizer.from_pretrained('Salesforce/codet5-base', cache_dir=args.tokenizer_path)

Is there anyone can teach me how to arrange the models in the folder 'models'??

Dominant language
Python
Stars
578
Forks
68
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from salesforce/CodeRL

All issues in salesforce/CodeRL

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.