-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix model_free
- Loading branch information
Showing
22 changed files
with
362 additions
and
125 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
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
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 |
---|---|---|
|
@@ -26,6 +26,7 @@ struct LLMFarmApp: App { | |
aiChatModel.stop_predict() | ||
} | ||
|
||
|
||
var body: some Scene { | ||
WindowGroup { | ||
|
||
|
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 |
---|---|---|
@@ -1,8 +1,29 @@ | ||
// | ||
// model_settings_stemplate.swift | ||
// ModelSettingsTemplate.swift | ||
// LLMFarm | ||
// | ||
// Created by guinmoon on 17.07.2023. | ||
// | ||
|
||
import Foundation | ||
|
||
struct ModelSettingsTemplate: Hashable { | ||
var template_name: String = "Custom" | ||
var inference = "llama" | ||
var context: Int32 = 2048 | ||
var n_batch: Int32 = 512 | ||
var temp: Float = 0.9 | ||
var top_k: Int32 = 40 | ||
var top_p: Float = 0.95 | ||
var repeat_last_n: Int32 = 64 | ||
var repeat_penalty: Float = 1.174 | ||
var prompt_format: String = "{{prompt}}" | ||
|
||
func hash(into hasher: inout Hasher) { | ||
hasher.combine(template_name) | ||
} | ||
|
||
static func == (lhs: ModelSettingsTemplate, rhs: ModelSettingsTemplate) -> Bool { | ||
return lhs.template_name == rhs.template_name | ||
} | ||
} |
Oops, something went wrong.