File size: 699 Bytes
fec4aad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/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);"
)
  - Qwen/Qwen2.5-72B
  - nvidia/Llama-3.1-Nemotron-70B-Instruct-HF
---

$(cat body.md)

MARKDOWN

popd > /dev/null