Skip to content

[BugFix]: Phi-3.5-mini-instruct fails to fine tune with lora #1398

[BugFix]: Phi-3.5-mini-instruct fails to fine tune with lora

[BugFix]: Phi-3.5-mini-instruct fails to fine tune with lora #1398

Workflow file for this run

name: Promptflow CI
on:
# Triggers the Promptflow CI on pull request targeting the main branch
workflow_dispatch:
pull_request:
branches:
- main
pull_request_target:
branches:
- main
types:
- opened
- labeled
- synchronize
- reopened
env:
PROMPTFLOW_DIR: "assets/promptflow/models"
permissions:
# Required for OIDC login to Azure
id-token: write
# Required to clone repo
contents: read
jobs:
check-execution-context:
uses: Azure/azureml-assets/.github/workflows/check-execution-context.yaml@main
check-directory-file-changes:
needs: check-execution-context
if: fromJSON(needs.check-execution-context.outputs.continue)
uses: Azure/azureml-assets/.github/workflows/check-changed-files.yaml@main
with:
folder_path: "assets/promptflow/models/**,.github/workflows/promptflow-ci.yml,scripts/promptflow-ci/**"
forked_pr_input: ${{ needs.check-execution-context.outputs.forked_pr }}
check_spec_yaml:
runs-on: ubuntu-latest
if: needs.check-directory-file-changes.outputs.files-changed != ''
needs: [check-execution-context, check-directory-file-changes]
name: Check spec.yaml fields
timeout-minutes: 45
steps:
- name: Clone branch
uses: Azure/azureml-assets/.github/actions/clone-repo@main
with:
forked-pr: ${{ needs.check-execution-context.outputs.forked_pr }}
fetch-depth: 2
- name: Set up Python 3.9 environment
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Check spec yaml
run: |-
pip install PyYAML
python scripts/promptflow-ci/check_spec_yaml.py --models_dir ${{ env.PROMPTFLOW_DIR }}
run_promptflow_ci_job:
runs-on: ubuntu-latest
if: needs.check-directory-file-changes.outputs.files-changed != ''
needs: [check-execution-context, check-directory-file-changes]
name: Flow tests
environment: Testing
timeout-minutes: 60
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Clone branch
uses: Azure/azureml-assets/.github/actions/clone-repo@main
with:
forked-pr: ${{ needs.check-execution-context.outputs.forked_pr }}
fetch-depth: 2
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install cspell
run: npm install -g cspell
- name: Set up Python 3.9 environment
uses: actions/setup-python@v4
with:
python-version: "3.9"
- run: |
python -m pip install --upgrade pip
pip install -r scripts/promptflow-ci/requirement.txt
- name: Azure login
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_PROMPT_FLOW_SUBSCRIPTION_ID }}
- name: Validate prompt flows
run: |
python scripts/promptflow-ci/promptflow_ci.py
- name: Run cspell for typo check
working-directory: ${{ env.PROMPTFLOW_DIR }}
run: |-
cspell lint "**" > cspell_check.log || true
if [ -s cspell_check.log ]; then
echo -e "\e[91mNote: If the detected words are expected, add them into "assets/promptflow/.cspell.json"\e[0m"
echo -e "====================== Summary of cspell errors ======================"
echo -e "\e[31m$(cat cspell_check.log)\e[0m"
exit 1
fi
rm -rf cspell_check.log