wxgeorge's picture
:wrench: update README to annotate only smaller models.
f3dd871
raw
history blame
No virus
632 Bytes
#!/bin/bash
# update model cache
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
pushd $SCRIPT_DIR > /dev/null
cat << MARKDOWN
---
$(cat manual-metadata.yaml)
$(cat ../model-cache.json \
| jq '[to_entries[] | select(.key | test("32b|70b|72b|8x22b|405b") | not) | .value[]] | sort | { models: . }' \
| node -e "
const fs = require('fs');
const YAML = require('yaml');
const input = fs.readFileSync(0, 'utf-8'); // Read from stdin
const json = JSON.parse(input);
const yamlStr = YAML.stringify(json);
console.log(yamlStr);"
)
---
$(cat body.md)
MARKDOWN
popd > /dev/null