forked from phoenix-oss/llama-stack-mirror
# What does this PR do? Automatically generates - build.yaml - run.yaml - run-with-safety.yaml - parts of markdown docs for the distributions. ## Test Plan At this point, this only updates the YAMLs and the docs. Some testing (especially with ollama and vllm) has been performed but needs to be much more tested.
18 lines
487 B
Bash
Executable file
18 lines
487 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the terms described in the LICENSE file in
|
|
# the root directory of this source tree.
|
|
|
|
echo "Preloading (${INFERENCE_MODEL}, ${SAFETY_MODEL})..."
|
|
for model in ${INFERENCE_MODEL} ${SAFETY_MODEL}; do
|
|
echo "Preloading $model..."
|
|
if ! ollama run "$model"; then
|
|
echo "Failed to pull and run $model"
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
echo "All models pulled successfully"
|