Skip to content

Release 22/inconsistent device tensor action in trainers [Don't Merge] #6225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 48 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
241b919
adding wrench
AlexRibard Aug 28, 2024
c4668ac
correct build path
AlexRibard Aug 28, 2024
205396d
release branch and 6.0 target
AlexRibard Aug 28, 2024
fc6ca44
XmlDoc update
AlexRibard Sep 2, 2024
66d1508
adressing xml docs
AlexRibard Sep 2, 2024
d8e30fa
more docs
AlexRibard Sep 3, 2024
3ce9849
updating the release
AlexRibard Sep 4, 2024
eb3b742
test xmldoc fixes
Sep 10, 2024
f82f8cd
more xml doc fixes
Sep 10, 2024
d67dc94
Uncompress the 3DBall sample
Sep 10, 2024
d93a5fc
Fix API documentation
Sep 10, 2024
3008e79
more xml doc fixes
Sep 11, 2024
2ee26c1
Revert "Uncompress the 3DBall sample"
Sep 11, 2024
401418f
reformat MaxStep xml
Sep 11, 2024
a1e3bc9
more xml doc fixes
Sep 11, 2024
5a7535e
fix more xml doc issues
Sep 11, 2024
430a1b2
fix summary tag
Sep 11, 2024
8fd8460
Updated changelog for missing PRs.
miguelalonsojr Sep 12, 2024
799f8f0
Removed tabs from .tests.json.
miguelalonsojr Sep 12, 2024
47da469
Updated changelog.
miguelalonsojr Sep 12, 2024
b658a48
Removed tabs from CHANGELOG.
miguelalonsojr Sep 12, 2024
038e99b
Fix failing ci post upgrade (#6141) (#6145)
miguelalonsojr Sep 12, 2024
f74208d
Removing standalone tests dep from wrench packaging.
miguelalonsojr Sep 12, 2024
2fa290c
Fixed package works issues. Updated com.unity.ml-agents.md.
miguelalonsojr Sep 12, 2024
2ab6c24
Updated com.unity.ml-agents.md.
miguelalonsojr Sep 12, 2024
1612e55
Updated package version in Academy.cs
miguelalonsojr Sep 12, 2024
0d3c10d
Adding back in package pack deps.
miguelalonsojr Sep 12, 2024
d374fa1
Updated package pack testing deps..
miguelalonsojr Sep 14, 2024
1a0e031
Regenerated wrench ymls.
miguelalonsojr Sep 14, 2024
9ecb3bd
License update.
miguelalonsojr Sep 24, 2024
67c7a27
Extensions License update.
miguelalonsojr Sep 24, 2024
900555d
Another license tweak.
miguelalonsojr Sep 24, 2024
d9ea8f2
Another license tweak.
miguelalonsojr Sep 25, 2024
0874236
Upgraded to sentis 2.1.0.
miguelalonsojr Sep 27, 2024
54db12e
Merge branch 'develop' into release/3.0.0
miguelalonsojr Sep 30, 2024
86814f4
Updated standalone yamato build test to using new ml-agents ubuntu ci…
miguelalonsojr Oct 3, 2024
9ac55b2
Merge branch 'release/3.0.0' of github.com:Unity-Technologies/ml-agen…
miguelalonsojr Oct 3, 2024
e9e3601
Bumped python and extensions package versions.
miguelalonsojr Oct 4, 2024
c683e77
Changed ci image for pytest gpu yamato test.
miguelalonsojr Oct 4, 2024
54664fc
Changed default cuda dtype to torch.float32.
miguelalonsojr Oct 4, 2024
e70d023
Updated version validation and extensions version.
miguelalonsojr Oct 4, 2024
9d34978
Fixed failing GPU test.
miguelalonsojr Oct 4, 2024
24485ed
Fixed failing GPU test.
miguelalonsojr Oct 4, 2024
501ba88
Updated readme table and make_readme_table.py
miguelalonsojr Oct 5, 2024
200fe54
Updated publish to pypi gha.
miguelalonsojr Oct 5, 2024
4c02a9c
Fixed Mixed CPU, GPU Computation Error
Jkho80 Jul 19, 2025
3962bab
Tiny change on dependencies.
Jkho80 Jul 19, 2025
9fba4eb
undo change on ml-agents/setup.py
Jkho80 Jul 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish_pypi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
python setup.py bdist_wheel
- name: Publish distribution 📦 to Test PyPI
if: startsWith(github.ref, 'refs/tags') && contains(github.ref, 'test')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_PASSWORD }}
repository_url: https://test.pypi.org/legacy/
Expand Down
2 changes: 1 addition & 1 deletion .yamato/pytest-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pytest_gpu:
name: Pytest GPU
agent:
type: Unity::VM::GPU
image: ml-agents/ml-agents-ubuntu-18.04:latest
image: ml-agents/ubuntu-ci:v1.0.0
flavor: b1.large
commands:
- |
Expand Down
2 changes: 1 addition & 1 deletion .yamato/standalone-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ test_linux_standalone_{{ editor.version }}_{{ editor.extra_test }}:
name: Test Linux Standalone {{ editor.version }} {{ editor.extra_test }}
agent:
type: Unity::VM
image: ml-agents/ml-agents-ubuntu-18.04:latest
image: ml-agents/ubuntu-ci:v1.0.0
flavor: b1.large
variables:
UNITY_VERSION: {{ editor.version }}
Expand Down
47 changes: 47 additions & 0 deletions .yamato/wrench/api-validation-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Auto-generated by Recipe Engine, do not modify manually.
# This job is generated by the wrench recipe engine module, see find the docs here: .

# upm-ci validation tests for API Validation - ml-agents - 2023.2 - windows (2023.2 - Windows).
api_validation_-_ml-agents_-_2023_2_-_windows:
name: API Validation - ml-agents - 2023.2 - windows
agent:
image: package-ci/win10:default
type: Unity::VM
flavor: b1.large
commands:
- command: curl %WRENCH_LOCAL_APV_DOWNLOAD_URL% -o wrench-localapv.zip
- command: 7z x wrench-localapv.zip
- command: python PythonScripts/print_machine_info.py
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- command: unity-downloader-cli -u 2023.2 -c Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/PackageJsonCondersor.py
timeout: 1
retries: 0
- command: upm-ci package test -u .Editor --package-path com.unity.ml-agents --type vetting-tests || exit 0
timeout: 30
retries: 0
- command: python PythonScripts/parse_upm_ci_results.py --package-path=com.unity.ml-agents
timeout: 2
retries: 0
artifacts:
Crash Dumps:
paths:
- CrashDumps/**
packages:
paths:
- upm-ci~/**/*
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_ml-agents
variables:
UPMPVP_CONTEXT_WRENCH: 0.10.5.0
triggers:
expression: push.branch match "^release/.*"
cancel_old_ci: true
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.10.5.0

32 changes: 32 additions & 0 deletions .yamato/wrench/package-pack-jobs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Auto-generated by Recipe Engine, do not modify manually.
# This job is generated by the wrench recipe engine module, see find the docs here: .

# Pack and Sign ML Agents
package_pack_-_ml-agents:
name: Package Pack - ml-agents
agent:
image: package-ci/ubuntu-20.04:default
type: Unity::VM
flavor: b1.large
commands:
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- command: curl $WRENCH_LOCAL_APV_DOWNLOAD_URL -o wrench-localapv.zip
- command: 7z x wrench-localapv.zip
- command: python PythonScripts/print_machine_info.py
- command: upm-ci package pack --package-path com.unity.ml-agents
- command: cp upm-ci~/packages/packages.json upm-ci~/packages/com.unity.ml-agents_packages.json
artifacts:
packages:
paths:
- upm-ci~/packages/**/*
variables:
UPMCI_ACK_LARGE_PACKAGE: 1
UPMPVP_CONTEXT_WRENCH: 0.10.5.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.10.5.0



164 changes: 164 additions & 0 deletions .yamato/wrench/preview-a-p-v.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
# Auto-generated by Recipe Engine, do not modify manually.
# This job is generated by the wrench recipe engine module, see find the docs here: .

# Parent Preview APV Job.
all_preview_apv_jobs:
name: All Preview APV Jobs
dependencies:
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_0_-_macos
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_0_-_ubuntu
- path: .yamato/wrench/preview-a-p-v.yml#preview_apv_-_6000_0_-_windows
triggers:
expression: push.branch match "^release/.*"
cancel_old_ci: true
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.10.5.0

# Functional tests for dependents found in the latest 6000.0 manifest (MacOS).
preview_apv_-_6000_0_-_macos:
name: Preview APV - 6000.0 - macos
agent:
image: package-ci/macos-13:default
type: Unity::VM::osx
flavor: b1.xlarge
commands:
- command: curl $WRENCH_LOCAL_APV_DOWNLOAD_URL -o wrench-localapv.zip
- command: 7z x wrench-localapv.zip
- command: python PythonScripts/print_machine_info.py
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- command: unity-downloader-cli -u 6000.0 -c Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.0 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
- command: echo 'Skipping Editor Manifest Validator as it is only supported on Windows'
artifacts:
Crash Dumps:
paths:
- CrashDumps/**
logs:
paths:
- '*.log'
- '*.xml'
- upm-ci~/test-results/**/*
- upm-ci~/temp/*/Logs/**
- upm-ci~/temp/*/Library/*.log
- upm-ci~/temp/*/*.log
- upm-ci~/temp/Builds/*.log
packages:
paths:
- upm-ci~/packages/**/*
PreviewAPVResults:
paths:
- PreviewApvArtifacts~/**
pvp-results:
paths:
- upm-ci~/pvp/**/*
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_ml-agents
variables:
UPMPVP_CONTEXT_WRENCH: 0.10.5.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.10.5.0

# Functional tests for dependents found in the latest 6000.0 manifest (Ubuntu).
preview_apv_-_6000_0_-_ubuntu:
name: Preview APV - 6000.0 - ubuntu
agent:
image: package-ci/ubuntu-20.04:default
type: Unity::VM
flavor: b1.large
commands:
- command: curl $WRENCH_LOCAL_APV_DOWNLOAD_URL -o wrench-localapv.zip
- command: 7z x wrench-localapv.zip
- command: python PythonScripts/print_machine_info.py
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- command: unity-downloader-cli -u 6000.0 -c Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.0 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
- command: echo 'Skipping Editor Manifest Validator as it is only supported on Windows'
artifacts:
Crash Dumps:
paths:
- CrashDumps/**
logs:
paths:
- '*.log'
- '*.xml'
- upm-ci~/test-results/**/*
- upm-ci~/temp/*/Logs/**
- upm-ci~/temp/*/Library/*.log
- upm-ci~/temp/*/*.log
- upm-ci~/temp/Builds/*.log
packages:
paths:
- upm-ci~/packages/**/*
PreviewAPVResults:
paths:
- PreviewApvArtifacts~/**
pvp-results:
paths:
- upm-ci~/pvp/**/*
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_ml-agents
variables:
UPMPVP_CONTEXT_WRENCH: 0.10.5.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.10.5.0

# Functional tests for dependents found in the latest 6000.0 manifest (Windows).
preview_apv_-_6000_0_-_windows:
name: Preview APV - 6000.0 - windows
agent:
image: package-ci/win10:default
type: Unity::VM
flavor: b1.large
commands:
- command: curl %WRENCH_LOCAL_APV_DOWNLOAD_URL% -o wrench-localapv.zip
- command: 7z x wrench-localapv.zip
- command: python PythonScripts/print_machine_info.py
- command: npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
timeout: 20
retries: 10
- command: unity-downloader-cli -u 6000.0 -c Editor --fast
timeout: 10
retries: 3
- command: python PythonScripts/preview_apv.py --wrench-config=.yamato/wrench/wrench_config.json --editor-version=6000.0 --testsuite=editor,playmode --artifacts-path=PreviewApvArtifacts~
- command: python PythonScripts/editor_manifest_validator.py --version=6000.0 --wrench-config=.yamato/wrench/wrench_config.json
artifacts:
Crash Dumps:
paths:
- CrashDumps/**
logs:
paths:
- '*.log'
- '*.xml'
- upm-ci~/test-results/**/*
- upm-ci~/temp/*/Logs/**
- upm-ci~/temp/*/Library/*.log
- upm-ci~/temp/*/*.log
- upm-ci~/temp/Builds/*.log
packages:
paths:
- upm-ci~/packages/**/*
PreviewAPVResults:
paths:
- PreviewApvArtifacts~/**
pvp-results:
paths:
- upm-ci~/pvp/**/*
dependencies:
- path: .yamato/wrench/package-pack-jobs.yml#package_pack_-_ml-agents
variables:
UPMPVP_CONTEXT_WRENCH: 0.10.5.0
metadata:
Job Maintainers: '#rm-packageworks'
Wrench: 0.10.5.0

Loading