KEMBAR78
Removed metadata.pkl file from PyTorch model by chloeyutianyi · Pull Request #61760 · pytorch/pytorch · GitHub
Skip to content

Conversation

@chloeyutianyi
Copy link
Contributor

@chloeyutianyi chloeyutianyi commented Jul 16, 2021

Removed metadata.pkl from PyTorch model and cleaned up all code for metadata.pkl creation.

@facebook-github-bot facebook-github-bot added oncall: jit Add this issue/PR to JIT oncall triage queue cla signed labels Jul 16, 2021
@facebook-github-bot
Copy link
Contributor

facebook-github-bot commented Jul 16, 2021

💊 CI failures summary and remediations

As of commit 6b8ac15 (more details on the Dr. CI page and at hud.pytorch.org/pr/61760):


None of the CI failures appear to be your fault 💚



❄️ 1 failure tentatively classified as flaky

but reruns have not yet been triggered to confirm:

See CircleCI build pytorch_macos_10_13_py3_build (1/1)

Step: "Checkout code" (full log | diagnosis details | 🔁 rerun) ❄️

fatal: Could not read from remote repository.
Using SSH Config Dir '/Users/distiller/.ssh'
git version 2.28.0
Cloning git repository
Cloning into '.'...
ssh: connect to host github.com port 22: Operation timed out

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


exit status 128


Preview docs built from this PR

This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions to the (internal) Dr. CI Users group.

Click here to manually regenerate this comment.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D29702943

Summary: Append mobile_info.json and producer_info.json into extra_files and parse the jsons from “model_info.json” in onExitLoadModel.

Test Plan:
# Test On CC Scanner
**Test content with LOG(WARNING)**
{P428203000}

**Scuba Logger Output**

{F630871365}

{F630871358}

# Test On 3D Photo
**Test content with LOG(WARNING)**
{P428203712}

**Scuba Logger Output**
{F630744454}

Differential Revision: D29608014

fbshipit-source-id: 0e74e8b6b5e972762e79636a1c13d71b89c87a3f
Differential Revision: D29673184

fbshipit-source-id: e6a98cb36bb321b85929dacebd15e3b70913a303
Differential Revision: D29690702

fbshipit-source-id: fd6a3228c9a603481c49924fbe24422f9e8160c4
Summary:
Pull Request resolved: pytorch#61760

Remove all code that related to metadata.pkl creation including creating metadata.pkl, converting data from extra/mobile_info.json and extra/producer_info.json to metadata.pkl file.

Test Plan:
## Run buck commands:
  - `cd` into `fbcode` then `buck build //caffe2/caffe2/fb/init:init`
  - `cd` into `fbcode` then `buck build //caffe2/torch/fb/init:init`
  - `buck build //xplat/caffe2:torch_mobile_core`

## Export a PyTorch lite/mobile model
- Run: `flow-cli canary users.xcheng16.pytorch_trainer.TestWorkflow --run-as-secure-group ai_mobile_platform --buck-target //fblearner/flow/projects/users/xcheng16:workflow` under `fbcode` on devserver.
-  Resulted Model: metadata.pkl no longer exist
{F632063134}

Reviewed By: guangy10

Differential Revision: D29702943

fbshipit-source-id: 57b9198f04e1e50830b8756bacfa2e650325739e
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D29702943

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 4479aa8.

@guangy10 guangy10 changed the title Remove all the code that constructs metadata.pkl file Removed metadata.pkl file from PyTorch model Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla signed fb-exported Merged oncall: jit Add this issue/PR to JIT oncall triage queue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants