Skip to content

Commit

Permalink
- improve: qwen2 as default initial model (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol authored Jun 8, 2024
1 parent 96f5195 commit 09be075
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/shinkai-desktop/src-tauri/src/hardware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub fn hardware_get_summary() -> HardwareSummary {
requirement_status = RequirementsStatus::Recommended;
} else if cpus >= MIN_CPUS && memory >= MIN_MEMORY {
requirement_status = RequirementsStatus::Minimum;
} else if cpus >= STILL_USABLE_CPUS && (is_macos && memory >= STILL_USABLE_MEMORY || memory > STILL_USABLE_MEMORY) {
} else if cpus >= STILL_USABLE_CPUS && memory >= STILL_USABLE_MEMORY {
requirement_status = RequirementsStatus::StillUsable;
} else {
requirement_status = RequirementsStatus::Unmeet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ impl ShinkaiNodeProcessHandler {
let mut model = "llama3:8b-instruct-q4_1".to_string();
let hardware_summary = hardware_get_summary();
match hardware_summary.requirements_status {
RequirementsStatus::Unmeet | RequirementsStatus::Minimum => {
RequirementsStatus::Minimum => {
model = "phi3:3.8b".to_string();
}
RequirementsStatus::StillUsable | RequirementsStatus::Unmeet => {
model = "qwen2:1.5b-instruct-q4_K_M".to_string();
}
_ => {}
}
model
Expand Down

0 comments on commit 09be075

Please sign in to comment.