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
9a3c8003
"server/text_generation_server/models/phi.py" did not exist on "e71471bec95823ef69daaeb03c4657b9b5211a02"
Unverified
Commit
9a3c8003
authored
May 24, 2024
by
Michael Yang
Committed by
GitHub
May 24, 2024
Browse files
Merge pull request #4624 from ollama/mxyng/fix-5
fix q5_0, q5_1
parents
4cc3be30
d51f1525
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
llm/ggml.go
llm/ggml.go
+2
-2
No files found.
llm/ggml.go
View file @
9a3c8003
...
@@ -125,9 +125,9 @@ type Tensor struct {
...
@@ -125,9 +125,9 @@ type Tensor struct {
func
(
t
Tensor
)
blockSize
()
uint64
{
func
(
t
Tensor
)
blockSize
()
uint64
{
switch
t
.
Kind
{
switch
t
.
Kind
{
case
0
,
1
,
24
,
25
,
26
,
27
,
28
,
3
1
:
// F32, F16, I8, I16, I32, I64, F64, BF16
case
0
,
1
,
24
,
25
,
26
,
27
,
28
,
3
0
:
// F32, F16, I8, I16, I32, I64, F64, BF16
return
1
return
1
case
2
,
3
,
8
,
9
,
20
:
// Q4_0, Q4_1, Q8_0, Q8_1, IQ4_NL
case
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
20
:
// Q4_0, Q4_1,
Q5_0, Q5_1,
Q8_0, Q8_1, IQ4_NL
return
32
return
32
default
:
// All others
default
:
// All others
return
256
return
256
...
...
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