-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5843 from berkeley-dsep-infra/staging
merging 5824/5839/5841 to prod
- Loading branch information
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This config represents running the command `yamllint -d relaxed .` with the | ||
# following extra rules: | ||
# | ||
# new-line-at-end-of-file: | ||
# level: warning | ||
# trailing-spaces: | ||
# level: warning | ||
# | ||
# We also ignore the cookiecutter directories as these often contain | ||
# jinja-style templating functions that yamllint doesn't play nicely with | ||
# | ||
# cribbed from https://github.com/2i2c-org/infrastructure/blob/main/.yamllint.yaml | ||
--- | ||
extends: default | ||
|
||
ignore: | | ||
**/template/** | ||
rules: | ||
braces: | ||
level: warning | ||
max-spaces-inside: 1 | ||
brackets: | ||
level: warning | ||
max-spaces-inside: 1 | ||
colons: | ||
level: warning | ||
commas: | ||
level: warning | ||
comments: disable | ||
comments-indentation: disable | ||
document-start: disable | ||
empty-lines: | ||
level: warning | ||
hyphens: | ||
level: warning | ||
indentation: | ||
level: warning | ||
indent-sequences: consistent | ||
line-length: disable | ||
new-line-at-end-of-file: | ||
level: warning | ||
trailing-spaces: | ||
level: warning | ||
truthy: disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
# Define the directory for persistent storage | ||
OLLAMA_DATA_DIR="/persistent/ollama" | ||
|
||
# Create the directory if it doesn't exist | ||
mkdir -p $OLLAMA_DATA_DIR | ||
|
||
# Download the Ollama executable | ||
wget https://github.com/ollama/ollama/releases/download/v0.1.48/ollama-linux-amd64 -O /usr/local/bin/ollama | ||
|
||
# Make the Ollama executable runnable | ||
chmod +x /usr/local/bin/ollama | ||
|
||
# Run the phi3:mini model with the specified data directory | ||
# /usr/local/bin/ollama run phi3:mini --data-dir $OLLAMA_DATA_DIR | ||
|
||
# Run the tinyllama model with the specified data directory | ||
# /usr/local/bin/ollama run tinyllama --data-dir $OLLAMA_DATA_DIR |