Instructions to use ibm-granite/granitelib-rag-r1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Granite Library
How to use ibm-granite/granitelib-rag-r1.0 with Granite Library:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
fix: remove .cache folder from find search
Browse filesSigned-off-by: Khoi-Nguyen Tran <kndtran@ibm.com>
- run_ollama.sh +1 -1
run_ollama.sh
CHANGED
|
@@ -30,7 +30,7 @@ OLLAMA_MODEL_DIR_NAME=${OLLAMA_MODEL_NAME/:/_}
|
|
| 30 |
echo "Loading adapters to: $OLLAMA_HOST"
|
| 31 |
echo ""
|
| 32 |
|
| 33 |
-
LORA_DIRS=$( find . -name "lora" -path "*/$OLLAMA_MODEL_DIR_NAME/*" | sort | cut -c 3- )
|
| 34 |
for LORA_DIR in $LORA_DIRS; do
|
| 35 |
MODELFILE_PATH="$LORA_DIR/Modelfile"
|
| 36 |
LORA_NAME=$(echo "$LORA_DIR" | cut -d "/" -f 1)
|
|
|
|
| 30 |
echo "Loading adapters to: $OLLAMA_HOST"
|
| 31 |
echo ""
|
| 32 |
|
| 33 |
+
LORA_DIRS=$( find . -name "lora" -path "*/$OLLAMA_MODEL_DIR_NAME/*" -not -path "*.cache*" | sort | cut -c 3- )
|
| 34 |
for LORA_DIR in $LORA_DIRS; do
|
| 35 |
MODELFILE_PATH="$LORA_DIR/Modelfile"
|
| 36 |
LORA_NAME=$(echo "$LORA_DIR" | cut -d "/" -f 1)
|