Page MenuHomePhabricator

Upload editquality model binaries to storage
Closed, ResolvedPublic

Description

In order to deploy the editquality models on Lift Wing, we need to upload the model files to storage, so our Inference Services can download the binaries and mount them in the pod.

We currently are using Thanos Swift for production storage and have configured s3cmd to work on the statboxes.
The model_upload script is available on the statboxes and should be used to push our models to the wmf-ml-models bucket, using the format determined in T280467
The script can be used as follows:

model_upload model.bin <damaging|goodfaith> <model-lang> wmf-ml-models

Once the models are uploaded to storage, we can reference them in our Inference Service specs using an env var:

- name: STORAGE_URI
  value: "s3://wmf-ml-models/goodfaith/enwiki/202105140814/"

Workflow:

  • Go through editquality/models directory
  • For each model:
    • get model-lang and model-type (goodfaith, damaging or reverted)
    • rename model to model.bin
    • upload model to storage

Event Timeline

ACraze changed the task status from Open to In Progress.Feb 14 2022, 4:40 PM
ACraze claimed this task.

I just uploaded all of the editquality model files to storage on stat1008 (using this script: P20723).

edit: there was a git LFS issue on the first mass-upload. Just ran it again and updated the storage uri list below

Here are (newest) storage uris:

s3://wmf-ml-models/damaging/arwiki/20220214192124/
s3://wmf-ml-models/goodfaith/arwiki/20220214192125/
s3://wmf-ml-models/reverted/bnwiki/20220214192126/
s3://wmf-ml-models/damaging/bswiki/20220214192128/
s3://wmf-ml-models/goodfaith/bswiki/20220214192131/
s3://wmf-ml-models/damaging/cawiki/20220214192132/
s3://wmf-ml-models/goodfaith/cawiki/20220214192134/
s3://wmf-ml-models/damaging/cswiki/20220214192135/
s3://wmf-ml-models/goodfaith/cswiki/20220214192137/
s3://wmf-ml-models/damaging/dewiki/20220214192138/
s3://wmf-ml-models/goodfaith/dewiki/20220214192139/
s3://wmf-ml-models/reverted/elwiki/20220214192140/
s3://wmf-ml-models/damaging/enwiki/20220214192142/
s3://wmf-ml-models/goodfaith/enwiki/20220214192144/
s3://wmf-ml-models/reverted/enwiktionary/20220214192146/
s3://wmf-ml-models/damaging/eswikibooks/20220214192149/
s3://wmf-ml-models/goodfaith/eswikibooks/20220214192150/
s3://wmf-ml-models/damaging/eswiki/20220214192151/
s3://wmf-ml-models/goodfaith/eswiki/20220214192152/
s3://wmf-ml-models/damaging/eswikiquote/20220214192153/
s3://wmf-ml-models/goodfaith/eswikiquote/20220214192155/
s3://wmf-ml-models/damaging/etwiki/20220214192156/
s3://wmf-ml-models/goodfaith/etwiki/20220214192158/
s3://wmf-ml-models/damaging/fawiki/20220214192200/
s3://wmf-ml-models/goodfaith/fawiki/20220214192201/
s3://wmf-ml-models/damaging/fiwiki/20220214192203/
s3://wmf-ml-models/goodfaith/fiwiki/20220214192206/
s3://wmf-ml-models/damaging/frwiki/20220214192208/
s3://wmf-ml-models/goodfaith/frwiki/20220214192209/
s3://wmf-ml-models/reverted/glwiki/20220214192210/
s3://wmf-ml-models/damaging/hewiki/20220214192211/
s3://wmf-ml-models/goodfaith/hewiki/20220214192215/
s3://wmf-ml-models/damaging/hiwiki/20220214192216/
s3://wmf-ml-models/goodfaith/hiwiki/20220214192218/
s3://wmf-ml-models/reverted/hrwiki/20220214192220/
s3://wmf-ml-models/damaging/huwiki/20220214192222/
s3://wmf-ml-models/goodfaith/huwiki/20220214192223/
s3://wmf-ml-models/reverted/idwiki/20220214192224/
s3://wmf-ml-models/reverted/iswiki/20220214192225/
s3://wmf-ml-models/damaging/itwiki/20220214192228/
s3://wmf-ml-models/goodfaith/itwiki/20220214171756/
s3://wmf-ml-models/damaging/jawiki/20220214192230/
s3://wmf-ml-models/goodfaith/jawiki/20220214192231/
s3://wmf-ml-models/damaging/kowiki/20220214192232/
s3://wmf-ml-models/goodfaith/kowiki/20220214192234/
s3://wmf-ml-models/damaging/lvwiki/20220214192236/
s3://wmf-ml-models/goodfaith/lvwiki/20220214192237/
s3://wmf-ml-models/damaging/nlwiki/20220214192238/
s3://wmf-ml-models/goodfaith/nlwiki/20220214192239/
s3://wmf-ml-models/damaging/nowiki/20220214192240/
s3://wmf-ml-models/goodfaith/nowiki/20220214192241/
s3://wmf-ml-models/damaging/plwiki/20220214192242/
s3://wmf-ml-models/goodfaith/plwiki/20220214192244/
s3://wmf-ml-models/damaging/ptwiki/20220214192246/
s3://wmf-ml-models/goodfaith/ptwiki/20220214192248/
s3://wmf-ml-models/damaging/rowiki/20220214192250/
s3://wmf-ml-models/goodfaith/rowiki/20220214192251/
s3://wmf-ml-models/damaging/ruwiki/20220214192252/
s3://wmf-ml-models/goodfaith/ruwiki/20220214192253/
s3://wmf-ml-models/damaging/sqwiki/20220214192254/
s3://wmf-ml-models/goodfaith/sqwiki/20220214192256/
s3://wmf-ml-models/damaging/srwiki/20220214192258/
s3://wmf-ml-models/goodfaith/srwiki/20220214192300/
s3://wmf-ml-models/damaging/svwiki/20220214192301/
s3://wmf-ml-models/goodfaith/svwiki/20220214192302/
s3://wmf-ml-models/reverted/tawiki/20220214192304/
s3://wmf-ml-models/reverted/translatewiki/20220214192306/
s3://wmf-ml-models/damaging/trwiki/20220214192307/
s3://wmf-ml-models/goodfaith/trwiki/20220214192310/
s3://wmf-ml-models/damaging/ukwiki/20220214192312/
s3://wmf-ml-models/goodfaith/ukwiki/20220214192313/
s3://wmf-ml-models/reverted/viwiki/20220214192315/
s3://wmf-ml-models/damaging/wikidatawiki/20220214192318/
s3://wmf-ml-models/goodfaith/wikidatawiki/20220214192321/
s3://wmf-ml-models/damaging/zhwiki/20220214192323/
s3://wmf-ml-models/goodfaith/zhwiki/20220214192324/

The itwiki damaging model was not here:

s3://wmf-ml-models/damaging/itwiki/20220214192228/

So I have uploaded it to:

s3://wmf-ml-models/damaging/itwiki/20220224172913

Removing inactive task assignee

kevinbazira renamed this task from Upload model binaries to storage to Upload editquality model binaries to storage.May 2 2022, 5:43 AM
kevinbazira claimed this task.

76/76 editquality models were uploaded successfully to Thanos Swift.