wxgeorge commited on
Commit
77d9d41
1 Parent(s): 2d50157

:truck: move model-cache.json back to root ... needed for space.

Browse files
readme-generator/cache-working-models.sh → cache-working-models.sh RENAMED
@@ -1,11 +1,9 @@
1
  #!/bin/bash
2
 
3
- capi /v1/models > cmodels.json
4
-
5
  my_jq_query=$(cat << JQ
6
  [.data[] | select(.status | test("idle|live"))]
7
  | [group_by(.model_class)[] | { key: .[0].model_class, value: [.[].id] }] | from_entries
8
  JQ
9
  )
10
 
11
- cat cmodels.json | jq "$my_jq_query" > model-cache.json
 
1
  #!/bin/bash
2
 
 
 
3
  my_jq_query=$(cat << JQ
4
  [.data[] | select(.status | test("idle|live"))]
5
  | [group_by(.model_class)[] | { key: .[0].model_class, value: [.[].id] }] | from_entries
6
  JQ
7
  )
8
 
9
+ capi /v1/models | jq "$my_jq_query" > model-cache.json
readme-generator/model-cache.json → model-cache.json RENAMED
File without changes
readme-generator/cmodels.json DELETED
The diff for this file is too large to render. See raw diff
 
readme-generator/generate.sh CHANGED
@@ -8,7 +8,7 @@ pushd $SCRIPT_DIR > /dev/null
8
  cat << MARKDOWN
9
  ---
10
  $(cat manual-metadata.yaml)
11
- $(cat model-cache.json \
12
  | jq '[to_entries[] | select(.key | test("70b|72b") | not) | .value[]] | sort | { models: . }' \
13
  | node -e "
14
  const fs = require('fs');
 
8
  cat << MARKDOWN
9
  ---
10
  $(cat manual-metadata.yaml)
11
+ $(cat ../model-cache.json \
12
  | jq '[to_entries[] | select(.key | test("70b|72b") | not) | .value[]] | sort | { models: . }' \
13
  | node -e "
14
  const fs = require('fs');