From 08b8916a45f0fb6e254e209cc28808de5ff72863 Mon Sep 17 00:00:00 2001 From: likelovewant Date: Wed, 18 Dec 2024 18:54:27 +0800 Subject: [PATCH] add gfx900:xnack- and workflow --- .github/workflows/upload-release-asset.yaml | 59 +++++++++++++++++++++ README.md | 2 +- make/Makefile.rocm | 2 +- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/upload-release-asset.yaml diff --git a/.github/workflows/upload-release-asset.yaml b/.github/workflows/upload-release-asset.yaml new file mode 100644 index 00000000..56272b0f --- /dev/null +++ b/.github/workflows/upload-release-asset.yaml @@ -0,0 +1,59 @@ +name: Upload Release Assets + +on: + release: + types: [created] + +jobs: + upload-release-assets: + runs-on: windows + steps: + - name: Checkout code + uses: actions/checkout@v2 + # This step checks out the code from the repository to the runner. + + # Assuming you already have compilation and packaging steps that generate the following files: + # dist/ollama-windows-amd64.7z + # dist/OllamaSetup.exe + + - name: Get the version + id: get_version + run: | + echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} + # This step extracts the version number from the tag name. + + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref_name }} + release_name: Release ${{ github.ref_name }} + body: | + Description of the release goes here. + # draft: false (Uncomment if you want to create a non-draft release) + # prerelease: false (Uncomment if you want to create a non-prerelease version) + # This step creates a new release on GitHub. + + - name: Upload ollama-windows-amd64.7z Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: dist/ollama-windows-amd64.7z + asset_name: ollama-windows-amd64.7z + asset_content_type: application/x-7z-compressed + # This step uploads the .7z file as a release asset. + + - name: Upload OllamaSetup.exe Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: dist/OllamaSetup.exe + asset_name: OllamaSetup.exe + asset_content_type: application/vnd.microsoft.portable-executable + # This step uploads the .exe file as a release asset. \ No newline at end of file diff --git a/README.md b/README.md index c66408f3..7780b86a 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Please download from ollama [official](https://ollama.com/download/OllamaSetup.e Example extra list add on this repo. ``` - "gfx803" "gfx902" gfx906:xnack- "gfx90c:xnack-" "gfx1010:xnack-" "gfx1011" "gfx1012:xnack-" "gfx1031" "gfx1032" "gfx1034" "gfx1035" "gfx1036" "gfx1103" "gfx1150(expertimental)"... + "gfx803" "gfx900:xnack-" "gfx902" gfx906:xnack- "gfx90c:xnack-" "gfx1010:xnack-" "gfx1011" "gfx1012:xnack-" "gfx1031" "gfx1032" "gfx1034" "gfx1035" "gfx1036" "gfx1103" "gfx1150(expertimental)"... ``` Please follow the [wiki](https://github.com/likelovewant/ollama-for-amd/wiki) guide to build or use the pre-release version. diff --git a/make/Makefile.rocm b/make/Makefile.rocm index 0149d84d..c3c6e5bb 100644 --- a/make/Makefile.rocm +++ b/make/Makefile.rocm @@ -6,7 +6,7 @@ include make/common-defs.make include make/rocm-defs.make -HIP_ARCHS_COMMON := gfx803 gfx902 gfx906:xnack- gfx90c:xnack- gfx1010:xnack- gfx1011 gfx1012:xnack- gfx1030 gfx1031 gfx1032 gfx1034 gfx1035 gfx1036 gfx1100 gfx1101 gfx1103 gfx1150 +HIP_ARCHS_COMMON := gfx803 gfx900:xnack- gfx902 gfx906:xnack- gfx90c:xnack- gfx1010:xnack- gfx1011 gfx1012:xnack- gfx1030 gfx1031 gfx1032 gfx1034 gfx1035 gfx1036 gfx1100 gfx1101 gfx1103 gfx1150 HIP_ARCHS_LINUX := gfx908:xnack- gfx90a:xnack+ gfx90a:xnack-