Rate This Document
Findability
Accuracy
Completeness
Readability

Environment Requirements

This document uses openEuler 24.03 LTS SP3, Transformers 5.4.0, and PyTorch (CUDA version) as an example to describe how to build the source code and perform verification. In addition, this section describes other environments supported by source code build verification.

Supported Versions

Table 1 Supported versions

OS

Python

Transformers

openEuler 24.03 LTS SP3

Python 3.11.6

Transformers 5.4.x

openEuler 22.03 LTS SP4

Python 3.9.9

Transformers < 5.0.0 (Transformers 4.57.6 is recommended.)

Dependent Component Requirements

Table 2 Dependent components and versions

Component

Version

python3

3.11.6-20.oe2403sp3

python3-pip

23.3.1-7.oe2403sp3

tar

1.35-2.oe2403sp3

Gzip

1.12-6.oe2403sp3

pip

26.1.1

setuptools

82.0.1

wheel

0.47.0

packaging

26.2

hatchling

1.29.0

PyTorch

2.11.0+cu130

CUDA Toolkit

13.0

huggingface-hub

1.17.0

NumPy

2.4.6

PyYAML

6.0.3

regex

2026.5.9

requests

2.34.2

safetensors

0.7.0

tokenizers

0.22.2

tqdm

4.67.3

filelock

3.29.0