forked from Mozilla-Ocho/llamafile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
143 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Refactor (Maintainers) | ||
description: Used to track refactoring opportunities | ||
title: "Refactor: " | ||
labels: ["refactor"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Don't forget to [check for existing refactor issue tickets](https://github.com/Mozilla-Ocho/llamafile/issues?q=is%3Aopen+is%3Aissue+label%3Arefactoring) in case it's already covered. | ||
Also you may want to check [Pull request refactor label as well](https://github.com/Mozilla-Ocho/llamafile/pulls?q=is%3Aopen+is%3Apr+label%3Arefactoring) for duplicates too. | ||
- type: textarea | ||
id: background-description | ||
attributes: | ||
label: Background Description | ||
description: Please provide a detailed written description of the pain points you are trying to solve. | ||
placeholder: Detailed description behind your motivation to request refactor | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: possible-approaches | ||
attributes: | ||
label: Possible Refactor Approaches | ||
description: If you have some idea of possible approaches to solve this problem. You may want to make it a todo list. | ||
placeholder: Your idea of possible refactoring opportunity/approaches | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: [ master, main, fix ] | ||
pull_request: | ||
branches: [ master, main, fix ] | ||
|
||
jobs: | ||
ubuntu-focal-make: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone | ||
id: checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Dependencies | ||
id: depends | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install make | ||
- name: Cache cosmocc toolchain | ||
id: cache-cosmocc-toolchain | ||
uses: actions/cache@v4 | ||
env: | ||
cache-name: cache-cosmocc-toolchain | ||
with: | ||
path: | | ||
.cosmocc | ||
o/depend | ||
o/depend.test | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/config.mk') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }} | ||
- name: Setup cosmocc and ape loader | ||
run: | | ||
sudo make cosmocc-ci PREFIX=/usr | ||
- name: Build | ||
run: | | ||
sudo make -j $(nproc) | ||
- name: Make Llamafile | ||
run: | | ||
cp ./models/TinyLLama-v0.1-5M-F16.gguf tinyllama.gguf | ||
cat << EoF > .args | ||
-m | ||
tinyllama.gguf | ||
... | ||
EoF | ||
cp o//llama.cpp/main/main \ | ||
tinyllama.llamafile | ||
o//llamafile/zipalign -j0 \ | ||
tinyllama.llamafile \ | ||
tinyllama.gguf \ | ||
.args | ||
- name: Execute LLM CLI CPU # GA doesn't have "support_simdgroup_reduction" for RMS_NORM :'( | ||
run: | | ||
./tinyllama.llamafile -e -p '## Famous Speech\n\nFour score and seven' -n 50 -ngl 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.