From f6c9ffe4dc003bb3044df353b7f901b632b4640b Mon Sep 17 00:00:00 2001 From: Qiyuan Gong Date: Wed, 22 May 2024 15:20:53 +0800 Subject: [PATCH] Add WANDB_MODE and HF_HUB_OFFLINE to XPU finetune README (#11097) * Add WANDB_MODE=offline to avoid multi-GPUs finetune errors. * Add HF_HUB_OFFLINE=1 to avoid Hugging Face related errors. --- python/llm/example/GPU/LLM-Finetuning/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/python/llm/example/GPU/LLM-Finetuning/README.md b/python/llm/example/GPU/LLM-Finetuning/README.md index 0c0f86ba..e1760a0c 100644 --- a/python/llm/example/GPU/LLM-Finetuning/README.md +++ b/python/llm/example/GPU/LLM-Finetuning/README.md @@ -29,3 +29,15 @@ This folder contains examples of running different training mode with IPEX-LLM o Please try `sudo apt install level-zero-dev` to fix it. - Please raise the system open file limit using `ulimit -n 1048576`. Otherwise, there may exist error `Too many open files`. + +- If application raise `wandb.errors.UsageError: api_key not configured (no-tty)`. Please login wandb or disable wandb login with this command: + +```bash +export WANDB_MODE=offline +``` + +- If application raise Hugging Face related errors, i.e., `NewConnectionError` or `Failed to download` etc. Please download models and datasets, set model and data path, then set `HF_HUB_OFFLINE` with this command: + +```bash +export HF_HUB_OFFLINE=1 +```