add bash file to update models
This commit is contained in:
parent
8af5c22c18
commit
5c310c3cba
2 changed files with 15 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/bin/bash
|
||||||
|
|
||||||
OUTPUT_DIR="content"
|
OUTPUT_DIR="content"
|
||||||
INPUT_FILE="${1:-urls.txt}"
|
INPUT_FILE="${1:-urls.txt}"
|
||||||
|
|
|
||||||
14
updateModels.sh
Executable file
14
updateModels.sh
Executable file
|
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 <folder>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
FOLDER="$1"
|
||||||
|
|
||||||
|
for modelfile in "$FOLDER"/Modelfile.*; do
|
||||||
|
[ -f "$modelfile" ] || continue
|
||||||
|
name="${modelfile##*.}"
|
||||||
|
ollama create "$name" -f "$modelfile"
|
||||||
|
done
|
||||||
Loading…
Reference in a new issue