feat: update lm_head for qwen3.5+ family #454
This file contains hidden or 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
| name: Build Windows Package | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - windows_zip_workflow | |
| tags: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build-windows-portable: | |
| runs-on: [self-hosted, windows, x64, portable] | |
| defaults: | |
| run: | |
| working-directory: src | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Configure CMake | |
| shell: powershell | |
| run: | | |
| cmake --preset windows-vs18 | |
| - name: Build | |
| shell: powershell | |
| run: | | |
| cmake --build --preset windows-default --config Release --parallel | |
| - name: Prepare package files | |
| shell: powershell | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| $dist = "dist" | |
| if (Test-Path $dist) { | |
| Remove-Item $dist -Recurse -Force | |
| } | |
| New-Item -ItemType Directory -Force $dist | Out-Null | |
| # Main executable | |
| Copy-Item -Path .\build\flm.exe -Destination $dist\ -Force | |
| # Required data assets | |
| Copy-Item -Path .\xclbins -Destination $dist\ -Recurse -Force | |
| Copy-Item -Path .\model_list.json -Destination $dist\ -Force | |
| Copy-Item -Path .\model_info.json -Destination $dist\ -Force | |
| Copy-Item -Path .\lib\xrt\*.dll -Destination $dist\ -Force | |
| Copy-Item -Path .\lib\*.dll -Destination $dist\ -Force | |
| - name: Upload build artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fastflowlm-windows-${{ github.sha }} | |
| path: src/dist/ | |
| if-no-files-found: error | |
| build-windows-msi: | |
| runs-on: [self-hosted, windows, x64, msi] | |
| defaults: | |
| run: | |
| working-directory: src | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Configure CMake | |
| shell: powershell | |
| run: | | |
| cmake --preset windows-vs18 | |
| - name: Build | |
| shell: powershell | |
| run: | | |
| cmake --build --preset windows-default --config Release --parallel | |
| - name: Stage installer package files | |
| shell: powershell | |
| run: | | |
| cd inno | |
| .\get_files.bat | |
| - name: Add WiX to PATH | |
| shell: powershell | |
| run: | | |
| $wixToolsPath = "C:\Users\zani\.dotnet\tools" | |
| if (-not (Test-Path "$wixToolsPath\wix.exe")) { | |
| throw "WiX was not found at $wixToolsPath\wix.exe" | |
| } | |
| $wixToolsPath | Out-File ` | |
| -FilePath $env:GITHUB_PATH ` | |
| -Encoding utf8 ` | |
| -Append | |
| - name: Verify WiX | |
| shell: powershell | |
| run: | | |
| Write-Host "Runner identity: $(whoami)" | |
| Write-Host "Runner profile: $env:USERPROFILE" | |
| $wix = Get-Command wix -ErrorAction Stop | |
| Write-Host "Using WiX: $($wix.Source)" | |
| wix --version | |
| - name: Build MSI installer | |
| shell: powershell | |
| run: | | |
| .\wix\build.ps1 | |
| - name: Upload MSI artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: fastflowlm-windows-msi-${{ github.sha }} | |
| path: src/wix/output/flm-setup.msi | |
| if-no-files-found: error | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [build-windows-portable, build-windows-msi] | |
| if: github.ref_type == 'tag' | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| path: release-assets | |
| - name: Create release zip | |
| run: | | |
| set -euo pipefail | |
| version="${GITHUB_REF_NAME#v}" | |
| zip_name="fastflowlm_${version}_windows_amd64.zip" | |
| # Zip the portable dist payload once for the GitHub Release asset. | |
| cd "release-assets/fastflowlm-windows-${{ github.sha }}" | |
| zip -r "../../${zip_name}" . | |
| - name: Stage MSI installer | |
| run: | | |
| set -euo pipefail | |
| cp "release-assets/fastflowlm-windows-msi-${{ github.sha }}/flm-setup.msi" ./flm-setup.msi | |
| - name: Upload assets to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: ${{ github.ref_name }} | |
| name: Release ${{ github.ref_name }} | |
| files: | | |
| fastflowlm_*.zip | |
| flm-setup.msi | |
| overwrite_files: true | |
| fail_on_unmatched_files: true |