Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
304f2b6c
Commit
304f2b6c
authored
Aug 26, 2023
by
Michael Yang
Browse files
add 34b to mem check
parent
dad63f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
llm/llm.go
llm/llm.go
+1
-1
No files found.
llm/llm.go
View file @
304f2b6c
...
@@ -55,7 +55,7 @@ func New(model string, adapters []string, opts api.Options) (LLM, error) {
...
@@ -55,7 +55,7 @@ func New(model string, adapters []string, opts api.Options) (LLM, error) {
if
totalResidentMemory
<
16
*
1024
*
1024
{
if
totalResidentMemory
<
16
*
1024
*
1024
{
return
nil
,
fmt
.
Errorf
(
"model requires at least 16GB of memory"
)
return
nil
,
fmt
.
Errorf
(
"model requires at least 16GB of memory"
)
}
}
case
ModelType30B
:
case
ModelType30B
,
ModelType34B
:
if
totalResidentMemory
<
32
*
1024
*
1024
{
if
totalResidentMemory
<
32
*
1024
*
1024
{
return
nil
,
fmt
.
Errorf
(
"model requires at least 32GB of memory"
)
return
nil
,
fmt
.
Errorf
(
"model requires at least 32GB of memory"
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment