Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

ResNet50 inference model seemed not support FP16 #173

Open

Description

@chenming22

I want to evaluate inference performance using AMX-FP16 on new CPU while default docker or AI tool package not supported AMX-FP16 because of old version of onednn(3.2.0), so building onednn-3.3.0 and intel extensions for tensorflow-2.15.0 from source and using following model:

FP32, FP16 and BFloat32 Pretrained model:

wget https://zenodo.org/record/2535873/files/resnet50_v1.pb 

howerver, log from onednn showed precision of this model was FP32 not FP16.

Activity

  1. sramakintel commented on Mar 25, 2024

    @sramakintel
    Contributor

    @chenming22 we will work on adding FP16 to resnet50 model. Thanks for reaching out.

  2. sramakintel commented on Mar 25, 2024

    @sramakintel
    Contributor

    @chenming22 we will work on adding FP16 to resnet50 model. Thanks for reaching out.

    @chenming22 we currently have AMP FP16 TF support based on the PR upstream here: tensorflow/tensorflow#62817. Since the script already supports FP16 input, installing tf-nighty from pip can provide FP16 support. Can you run the workload again to see if FP16 works as expected?

  3. chenming22 commented on Mar 26, 2024

    @chenming22
    Author

    thanks @sramakintel , i will have a try.

  4. chenming22 commented on Jun 6, 2024

    @chenming22
    Author

    hi, @sramakintel , noticed above pr been merged to tf2.16.1, so i install tf2.16.1 from pip and then ran inference.sh in ResNet50 V1.5 inference with precision=fp16, ONEDNN_MAX_CPU_ISA=AVX512_CORE_AMX_FP16 and model: resnet50_v1.pb, but log and metric on emon showed no AMX instructions used, any other environment variables or configurations needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions