Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Navi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
SaintSec
Navi
Commits
924b6c88
Commit
924b6c88
authored
3 months ago
by
VAliquo
Browse files
Options
Downloads
Patches
Plain Diff
[UPDATE] Clean up Windows Ollama installation
parent
20c0d1a9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install/local_model.py
+3
-16
3 additions, 16 deletions
install/local_model.py
with
3 additions
and
16 deletions
install/local_model.py
+
3
−
16
View file @
924b6c88
...
...
@@ -67,25 +67,12 @@ def install_ollama() -> bool:
print
(
"
Please complete the Ollama installation. Once done, type
'
c
'
and press Enter to continue.
"
)
while
input
(
"
Type
'
c
'
to continue:
"
).
strip
().
lower
()
!=
'
c
'
:
print
(
"
Invalid input. Please type
'
c
'
to continue.
"
)
# Verify the installation
print
(
"
Verifying Ollama installation...
"
)
result
=
subprocess
.
run
(
[
"
ollama
"
,
"
--version
"
],
capture_output
=
True
,
text
=
True
,
)
if
result
.
returncode
==
0
:
print
(
f
"
Ollama installed successfully:
{
result
.
stdout
.
strip
()
}
"
)
else
:
print
(
"
Ollama installation verification failed!
"
)
print
(
"
stderr:
"
,
result
.
stderr
.
strip
())
return
False
else
:
print
(
"
Unsupported platform for Ollama installation.
"
)
return
False
if
not
ollama_installed
():
print
(
"
Oh dear, something went wrong installing Ollama.
"
)
return
False
print
(
"
Ollama installation succeeded!
"
)
return
True
except
subprocess
.
CalledProcessError
as
e
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment