[huggingface_pytorch] Training - update for Transformers to 4.28.1 PyTorch 2.0#2993
Conversation
saimidu
left a comment
There was a problem hiding this comment.
Should there be another test added for the evaluate feature?
Yep, I replaced previous sklean metrics by those in evaluate. Thanks for the heads up. |
|
It looks like the diffuser test never ran because of: All other sagemaker integration tests for the image failed due to: |
Hi @saimidu, The first issue is fixed. For the second issue, sagemaker distributed training features seem broken since the transformers 4.29.* released this week. Let's continue with 4.28.* . I will discuss this break internally with the Transformers team. Could you help me with the sanity test? Thanks! |
|
@JingyaHuang Thanks for looking into the issues with SM distributed training when using transformers 4.29.*. One of the failures on the sanity tests is the W.r.t. the second failure, could you add a file named |
|
Hi @saimidu, I just pinged the tensorflow to 2.12.0, TF is needed only as a dependency for For the [Update] TensorFlow 2.12.0 is not compatible transformers 4.28.1, maybe we should add TensorFlow lower version the the allow list? As TF is on board just for tensorboard and lower version of TF works for it. |
|
@JingyaHuang All tests seem to pass with tensorflow removed, as per CI on commit 123450d. Removing tensorflow from ecr-enhanced-scan allowlist and enabling other SM integration tests for the image to move forward. |
saimidu
left a comment
There was a problem hiding this comment.
Approved, unless any further changes are necessary. @JingyaHuang Shall we merge this PR?
GitHub Issue #2986 :
Description
This PR updates Hugginface's PyTorch DLC for inference. Here are the corresponding updated dependencies versions:
transformers: 4.28.1datasets: 2.12.0evaluate: 0.4.0accelerate: 0.19.0torch: 2.0.0diffusers: 0.16.1And extra tests:
Note:
If merging this PR should also close the associated Issue, please also add that Issue # to the Linked Issues section on the right.
All PR's are checked weekly for staleness. This PR will be closed if not updated in 30 days.
Description
Tests run
NOTE: By default, docker builds are disabled. In order to build your container, please update dlc_developer_config.toml and specify the framework to build in "build_frameworks"
NOTE: If you are creating a PR for a new framework version, please ensure success of the standard, rc, and efa sagemaker remote tests by updating the dlc_developer_config.toml file:
sagemaker_remote_tests = "standard"sagemaker_remote_tests = "rc"sagemaker_remote_tests = "efa"Additionally, please run the sagemaker local tests in at least one revision:
sagemaker_local_tests = trueFormatting
black -l 100on my code (formatting tool: https://black.readthedocs.io/en/stable/getting_started.html)DLC image/dockerfile
Additional context
PR Checklist
Pytest Marker Checklist
@pytest.mark.model("<model-type>")to the new tests which I have added, to specify the Deep Learning model that is used in the test (use"N/A"if the test doesn't use a model)@pytest.mark.integration("<feature-being-tested>")to the new tests which I have added, to specify the feature that will be tested@pytest.mark.multinode(<integer-num-nodes>)to the new tests which I have added, to specify the number of nodes used on a multi-node test@pytest.mark.processor(<"cpu"/"gpu"/"eia"/"neuron">)to the new tests which I have added, if a test is specifically applicable to only one processor typeEIA/NEURON/GRAVITON Testing Checklist
dlc_developer_config.tomlin my PR branch by settingei_mode = true,neuron_mode = trueorgraviton_mode = trueBenchmark Testing Checklist
dlc_developer_config.tomlin my PR branch by settingbenchmark_mode = trueBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.