Skip to content

Commit

Permalink
jamie model override access token
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanfeenstra committed Oct 23, 2024
1 parent 124cba8 commit 8873b1e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/images/jamie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ fn jamie(node: &JamieImage, mongo: &MongoImage, llama_opt: &Option<LlamaImage>)
}},
"endpoints": [{{
"type" : "llamacpp",
"baseURL": "http://{}:{}"
"url": "http://{}:{}",
"accessToken": "xyz"
}}],
}},
]`"#,
Expand Down
2 changes: 2 additions & 0 deletions src/images/llama.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const DEFAULT_MODEL: &str = "llama-2-7b.Q4_K_M.gguf";
const VERSION: &str = "server-cuda";

// pwd: /home/admin/sphinx-swarm
// to dl: wget -b url
// tail wget-log

impl LlamaImage {
pub fn new(name: &str, port: &str) -> Self {
Expand Down
4 changes: 3 additions & 1 deletion stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ if [ $1 == "btc" ] || \
[ $1 == "llama" ] || \
[ $1 == "whisper" ] || \
[ $1 == "whisker" ] || \
[ $1 == "runner" ]
[ $1 == "runner" ] || \
[ $1 == "mongo" ] || \
[ $1 == "jamie" ]

then
echo "=> stop $1.sphinx"
Expand Down

0 comments on commit 8873b1e

Please sign in to comment.