Skip to content

Commit

Permalink
Merge branch 'master' into snyk-fix-6186b78cb9bdefdfbc19f061c3bc0e9c
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen authored Oct 14, 2024
2 parents da78c0b + 931999c commit bb81d4c
Show file tree
Hide file tree
Showing 373 changed files with 22,732 additions and 9,803 deletions.
43 changes: 5 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1130,8 +1130,7 @@ jobs:
with:
file: ./LLM/Dockerfile
context: ./LLM
# arm64 is not supported by the base image of the LLM
platforms: linux/amd64
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down Expand Up @@ -1166,13 +1165,6 @@ jobs:
with:
node-version: 18.3.0

# - name: Setup Git LFS
# run: git lfs install

# # Cannot do this, no space on the gitHub standard runner. We need to use the large runner which is selfhosted
# - name: Download the Model from Hugging Face
# run: mkdir -p ./LLM/Models && cd ./LLM/Models && git clone https://${{ secrets.HUGGING_FACE_USERNAME }}:${{ secrets.HUGGING_FACE_PASSWORD }}@huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand Down Expand Up @@ -1202,8 +1194,7 @@ jobs:
with:
file: ./Docs/Dockerfile
context: .
# arm64 is not supported by the base image of the LLM
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down Expand Up @@ -1241,13 +1232,6 @@ jobs:
with:
node-version: 18.3.0

# - name: Setup Git LFS
# run: git lfs install

# # Cannot do this, no space on the gitHub standard runner. We need to use the large runner which is selfhosted
# - name: Download the Model from Hugging Face
# run: mkdir -p ./LLM/Models && cd ./LLM/Models && git clone https://${{ secrets.HUGGING_FACE_USERNAME }}:${{ secrets.HUGGING_FACE_PASSWORD }}@huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand Down Expand Up @@ -1277,8 +1261,7 @@ jobs:
with:
file: ./Worker/Dockerfile
context: .
# arm64 is not supported by the base image of the LLM
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down Expand Up @@ -1316,13 +1299,6 @@ jobs:
with:
node-version: 18.3.0

# - name: Setup Git LFS
# run: git lfs install

# # Cannot do this, no space on the gitHub standard runner. We need to use the large runner which is selfhosted
# - name: Download the Model from Hugging Face
# run: mkdir -p ./LLM/Models && cd ./LLM/Models && git clone https://${{ secrets.HUGGING_FACE_USERNAME }}:${{ secrets.HUGGING_FACE_PASSWORD }}@huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand Down Expand Up @@ -1352,8 +1328,7 @@ jobs:
with:
file: ./Workflow/Dockerfile
context: .
# arm64 is not supported by the base image of the LLM
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down Expand Up @@ -1392,13 +1367,6 @@ jobs:
with:
node-version: 18.3.0

# - name: Setup Git LFS
# run: git lfs install

# # Cannot do this, no space on the gitHub standard runner. We need to use the large runner which is selfhosted
# - name: Download the Model from Hugging Face
# run: mkdir -p ./LLM/Models && cd ./LLM/Models && git clone https://${{ secrets.HUGGING_FACE_USERNAME }}:${{ secrets.HUGGING_FACE_PASSWORD }}@huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

Expand Down Expand Up @@ -1428,8 +1396,7 @@ jobs:
with:
file: ./APIReference/Dockerfile
context: .
# arm64 is not supported by the base image of the LLM
platforms: linux/amd64
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
4 changes: 2 additions & 2 deletions APIReference/Utils/Resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class ResourceUtil {
// Get all resources that should have documentation enabled
public static getResources(): Array<ModelDocumentation> {
const resources: Array<ModelDocumentation> = Models.filter(
(model: typeof BaseModel) => {
(model: { new (): BaseModel }) => {
const modelInstance: BaseModel = new model();
let showDocs: boolean = modelInstance.enableDocumentation;

Expand All @@ -27,7 +27,7 @@ export default class ResourceUtil {
return showDocs;
},
)
.map((model: typeof BaseModel) => {
.map((model: { new (): BaseModel }) => {
const modelInstance: BaseModel = new model();

return {
Expand Down
Loading

0 comments on commit bb81d4c

Please sign in to comment.