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
78140a71
Commit
78140a71
authored
Jul 05, 2024
by
Michael Yang
Browse files
cleanup tests
parent
1954ec59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
envconfig/config_test.go
envconfig/config_test.go
+0
-15
No files found.
envconfig/config_test.go
View file @
78140a71
...
...
@@ -6,23 +6,8 @@ import (
"time"
"github.com/google/go-cmp/cmp"
"github.com/stretchr/testify/require"
)
func
TestSmoke
(
t
*
testing
.
T
)
{
t
.
Setenv
(
"OLLAMA_DEBUG"
,
""
)
require
.
False
(
t
,
Debug
())
t
.
Setenv
(
"OLLAMA_DEBUG"
,
"false"
)
require
.
False
(
t
,
Debug
())
t
.
Setenv
(
"OLLAMA_DEBUG"
,
"1"
)
require
.
True
(
t
,
Debug
())
t
.
Setenv
(
"OLLAMA_FLASH_ATTENTION"
,
"1"
)
require
.
True
(
t
,
FlashAttention
())
}
func
TestHost
(
t
*
testing
.
T
)
{
cases
:=
map
[
string
]
struct
{
value
string
...
...
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