microsoft / microsoft/onnxruntime
OSError when converting cdialgpt to onnx format
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 21.9k
- Forks
- 4.2k
- Avg merge
- 4d 8h
- Merged PRs (30d)
- 179
Description
Describe the bug
i download the whole file from CDial-GPT_LCCC-large
, then add "model_type": "openai-gpt" to config.json, meet error as converting:
OSError: Couldn't reach server at 'CDial-GPT_LCCC-large/config.json' to download configuration file or configuration file is not a valid JSON file. Please check network or file content here: CDial-GPT_LCCC-large/config.json.
Urgency
none
System information
- Platform: Darwin-20.5.0-x86_64-i386-64bit
- Python version: 3.7.11
- PyTorch Version:1.9.0
- Transformers Version:4.9.2
- Onnxruntime Version:1.9.0
To Reproduce
code:
python -m onnxruntime.transformers.convert_to_onnx -m CDial-GPT_LCCC-large/ --output cdialgpt.onnx -p fp32 --optimize_onnx
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the command python -m onnxruntime.transformers.convert_to_onnx with the supplied CDial-GPT_LCCC-large directory and inspect its config.json. Trace how the converter loads the local model configuration; done means the cause of the OSError is identified and local conversion behavior is verified or the issue is clarified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100