"llmdeploy/vscode:/vscode.git/clone" did not exist on "cb8ac1b08b405c3d80806b990247af8a7a9d3ed4"
env_var.rst 1.48 KB
Newer Older
Haibin Lin's avatar
Haibin Lin committed
1
2
3
Environment Variables
=====================

4
5
6
7
8
9
Global Configurations
---------------------
* ``DGLDEFAULTDIR``:
    * Values: String (default=``"${HOME}/.dgl"``)
    * The directory to save the DGL configuration files.

10
11
12
13
* ``DGL_LOG_DEBUG``:
    * Values: Set to ``"1"`` to enable debug level logging for DGL
    * Enable debug level logging for DGL

Haibin Lin's avatar
Haibin Lin committed
14
15
Backend Options
---------------
Gan Quan's avatar
Gan Quan committed
16
* ``DGLBACKEND``:
Haibin Lin's avatar
Haibin Lin committed
17
    * Values: String (default='pytorch')
18
    * The backend deep learning framework for DGL.
Haibin Lin's avatar
Haibin Lin committed
19
    * Choices:
Jinjing Zhou's avatar
Jinjing Zhou committed
20
21
        * 'pytorch': use PyTorch as the backend implementation.        
        * 'tensorflow': use Apache TensorFlow as the backend implementation.
Haibin Lin's avatar
Haibin Lin committed
22
23
24
25
        * 'mxnet': use Apache MXNet as the backend implementation.

Data Repository
---------------
Gan Quan's avatar
Gan Quan committed
26
* ``DGL_REPO``:
27
    * Values: String (default='https://data.dgl.ai/')
Haibin Lin's avatar
Haibin Lin committed
28
29
    * The repository url to be used for DGL datasets and pre-trained models.
    * Suggested values:
30
31
        * 'https://data.dgl.ai/': DGL repo for Global Region.
        * 'https://dgl-data.s3.cn-north-1.amazonaws.com.cn/': DGL repo for Mainland China
Gan Quan's avatar
Gan Quan committed
32
* ``DGL_DOWNLOAD_DIR``:
33
    * Values: String (default=``"${HOME}/.dgl"``)
Gan Quan's avatar
Gan Quan committed
34
    * The local directory to cache the downloaded data.
35
36
37
38
39
40
41
42
43
44
45
46

Intel CPU Performance Options
---------------
* ``DGL_CPU_INTEL_KERNEL_ENABLED``:
    * Values: int (default='0')
    * Use dynamic cpu kernels.
    * Suggested values: 1

* ``DGL_CPU_INTEL_KERNEL_LOG``:
    * Values: int (default='0')
    * Show diagnostic message (debug mode).
    * Suggested values: 1