Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust nice value for LLM #151

Merged
merged 1 commit into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading