microsoft / microsoft/onnxruntime

OSError when converting cdialgpt to onnx format

Open
#9,604 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.