Skip to content

Commit

Permalink
adjust nice
Browse files Browse the repository at this point in the history
  • Loading branch information
Endle committed Sep 28, 2024
1 parent fec3cd2 commit 1d00f8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fire_seq_search_server/debug_server.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
set -e
rm -f ./fire_seq_search_server
# nix-shell -p cargo -p rustc -p libiconv --run "cargo build"
cargo build
cargo build --features llm
cp target/debug/fire_seq_search_server ./fire_seq_search_server

export RUST_LOG="warn,fire_seq_search_server=info"
Expand Down
5 changes: 3 additions & 2 deletions fire_seq_search_server/src/local_llm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,9 @@ impl LlmEngine {
let lfile = locate_llamafile().await;
let lfile:String = lfile.unwrap();

let _cmd = Command::new("sh")
.args([ &lfile, "--nobrowser",
let _cmd = Command::new("nice")
.args([ "-n", "19",
&lfile, "--nobrowser",
"--port", LLM_SERVER_PORT,
//">/tmp/llamafile.stdout", "2>/tmp/llamafile.stderr",
])
Expand Down

0 comments on commit 1d00f8e

Please sign in to comment.