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
7a378f8b
Commit
7a378f8b
authored
Aug 25, 2023
by
Michael Yang
Browse files
patch llama.cpp for 34B
parent
de0bdd7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
llm/llama.cpp
llm/llama.cpp
+3
-0
No files found.
llm/llama.cpp
View file @
7a378f8b
...
@@ -105,6 +105,7 @@ enum e_model {
...
@@ -105,6 +105,7 @@ enum e_model {
MODEL_7B
,
MODEL_7B
,
MODEL_13B
,
MODEL_13B
,
MODEL_30B
,
MODEL_30B
,
MODEL_34B
,
MODEL_65B
,
MODEL_65B
,
MODEL_70B
,
MODEL_70B
,
};
};
...
@@ -1053,6 +1054,7 @@ static const char *llama_model_type_name(e_model type) {
...
@@ -1053,6 +1054,7 @@ static const char *llama_model_type_name(e_model type) {
case
MODEL_7B
:
return
"7B"
;
case
MODEL_7B
:
return
"7B"
;
case
MODEL_13B
:
return
"13B"
;
case
MODEL_13B
:
return
"13B"
;
case
MODEL_30B
:
return
"30B"
;
case
MODEL_30B
:
return
"30B"
;
case
MODEL_34B
:
return
"34B"
;
case
MODEL_65B
:
return
"65B"
;
case
MODEL_65B
:
return
"65B"
;
case
MODEL_70B
:
return
"70B"
;
case
MODEL_70B
:
return
"70B"
;
default:
LLAMA_ASSERT
(
false
);
default:
LLAMA_ASSERT
(
false
);
...
@@ -1100,6 +1102,7 @@ static void llama_model_load_internal(
...
@@ -1100,6 +1102,7 @@ static void llama_model_load_internal(
case
26
:
model
.
type
=
e_model
::
MODEL_3B
;
break
;
case
26
:
model
.
type
=
e_model
::
MODEL_3B
;
break
;
case
32
:
model
.
type
=
e_model
::
MODEL_7B
;
break
;
case
32
:
model
.
type
=
e_model
::
MODEL_7B
;
break
;
case
40
:
model
.
type
=
e_model
::
MODEL_13B
;
break
;
case
40
:
model
.
type
=
e_model
::
MODEL_13B
;
break
;
case
48
:
model
.
type
=
e_model
::
MODEL_34B
;
break
;
case
60
:
model
.
type
=
e_model
::
MODEL_30B
;
break
;
case
60
:
model
.
type
=
e_model
::
MODEL_30B
;
break
;
case
80
:
model
.
type
=
e_model
::
MODEL_65B
;
break
;
case
80
:
model
.
type
=
e_model
::
MODEL_65B
;
break
;
default:
default:
...
...
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