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
9fe01867
Commit
9fe01867
authored
Jul 06, 2023
by
Jeffrey Morgan
Browse files
use `Makefile` for dependency building instead of `go generate`
parent
e423421f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
.gitignore
.gitignore
+1
-0
Makefile
Makefile
+18
-0
llama/llama.go
llama/llama.go
+0
-2
llama/llama_metal.go
llama/llama_metal.go
+0
-3
No files found.
.gitignore
View file @
9fe01867
...
...
@@ -7,3 +7,4 @@ build
dist
__pycache__
ollama
ggml-metal.metal
Makefile
0 → 100644
View file @
9fe01867
default
:
ollama
.PHONY
:
llama
llama
:
cmake
-S
llama
-B
llama/build
-DLLAMA_METAL
=
on
cmake
--build
llama/build
.PHONY
:
ollama
ollama
:
llama
go build .
.PHONY
:
app
app
:
ollama
npm run
--prefix
app package
clean
:
go clean
rm
-rf
llama/build
llama/llama.go
View file @
9fe01867
...
...
@@ -20,8 +20,6 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//go:generate cmake -S . -B build
//go:generate cmake --build build
package
llama
// #cgo LDFLAGS: -Lbuild -lbinding -lllama -lm -lggml_static -lstdc++
...
...
llama/llama_metal.go
View file @
9fe01867
//go:build metal
package
llama
//go:generate cmake -S . -B build --fresh -DLLAMA_METAL=on
//go:generate cmake --build build
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