Skip to content

Instantly share code, notes, and snippets.

@jelmervdl
Created October 19, 2021 15:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jelmervdl/1a48816e4c3643ff5d9e1fd6821bc499 to your computer and use it in GitHub Desktop.
Save jelmervdl/1a48816e4c3643ff5d9e1fd6821bc499 to your computer and use it in GitHub Desktop.
Size Model
32.88MB csen.student.base.tar.gz
15.10MB csen.student.tiny11.tar.gz
31.98MB encs.student.base.tar.gz
14.22MB encs.student.tiny11.tar.gz
32.25MB ende.student.base.tar.gz
14.63MB ende.student.tiny11.tar.gz
14.94MB esen.student.tiny11.tar.gz
14.10MB enes.student.tiny11.tar.gz
13.96MB eten.student.tiny11.tar.gz
13.67MB enet.student.tiny11.tar.gz
15.16MB isen.student.tiny11.tar.gz
10.75MB nben.student.tiny11.tar.gz
10.94MB nnen.student.tiny11.tar.gz
15.32MB deen.student.tiny11.tar.gz
#!/bin/bash
curl -L 'https://translatelocally.com/models.json' |
jq -r '.models[].url' |
while read url; do
size=$(curl -s -L -I "$url" | awk '/^Content-Length/ { print $2 / (1024 * 1024) }')
printf '%0.2fMB\t%s\n' "$size" "$url"
done⏎
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment