Skip to content

Commit 6ccdb1c

Browse files
authored
remove invalid LLM pretraining examples (#5583)
1 parent 54b2125 commit 6ccdb1c

File tree

9 files changed

+9
-785
lines changed

9 files changed

+9
-785
lines changed

examples/gpu/llm/README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Here you can find examples for large language models (LLM) text generation. Thes
55
> [!NOTE]
66
> New Llama models like Llama3.2-1B, Llama3.2-3B and Llama3.3-7B are also supported from release v2.7.10+xpu.
77
8-
- Include both inference/finetuning(lora)/bitsandbytes(qlora-finetuning)/training.
8+
- Include both inference/finetuning(lora)/bitsandbytes(qlora-finetuning).
99
- Include both single instance and distributed (DeepSpeed) use cases for FP16 optimization.
1010
- Support Llama, GPT-J, Qwen, OPT, Bloom model families and some other models such as Baichuan2-13B and Phi3-mini.
1111
- Cover model generation inference with low precision cases for different models with best performance and accuracy (fp16 AMP and weight only quantization)
@@ -32,7 +32,7 @@ docker run -it --rm --privileged -v /dev/dri/by-path:/dev/dri/by-path ipex-llm:x
3232
cd llm
3333

3434
# Activate environment variables
35-
source ./tools/env_activate.sh [inference|fine-tuning|bitsandbytes|training]
35+
source ./tools/env_activate.sh [inference|fine-tuning|bitsandbytes]
3636
# on Windows, use env_activate.bat instead
3737
call .\tools\env_activate.bat [inference|fine-tuning|bitsandbytes]
3838
```
@@ -59,7 +59,7 @@ cd examples/gpu/llm
5959
python ./tools/env_setup.py --setup --deploy
6060
conda deactivate
6161
conda activate llm
62-
source ./tools/env_activate.sh [inference|fine-tuning|bitsandbytes|training]
62+
source ./tools/env_activate.sh [inference|fine-tuning|bitsandbytes]
6363
# on Windows, use env_activate.bat instead
6464
call .\tools\env_activate.bat [inference|fine-tuning|bitsandbytes]
6565
```
@@ -84,7 +84,7 @@ docker run -it --rm --privileged -v /dev/dri/by-path:/dev/dri/by-path ipex-llm:x
8484
cd llm
8585

8686
# Activate environment variables
87-
source ./tools/env_activate.sh [inference|fine-tuning|bitsandbytes|training]
87+
source ./tools/env_activate.sh [inference|fine-tuning|bitsandbytes]
8888
# on Windows, use env_activate.bat instead
8989
call .\tools\env_activate.bat [inference|fine-tuning|bitsandbytes]
9090
```
@@ -114,7 +114,7 @@ python ./tools/env_setup.py --setup --install-pytorch compile --aot <AOT> --onea
114114

115115
conda deactivate
116116
conda activate llm
117-
source ./tools/env_activate.sh [inference|fine-tuning|bitsandbytes|training]
117+
source ./tools/env_activate.sh [inference|fine-tuning|bitsandbytes]
118118
# on Windows, use env_activate.bat instead
119119
call .\tools\env_activate.bat [inference|fine-tuning|bitsandbytes]
120120
```
@@ -135,4 +135,3 @@ For fine-tuning example scripts, visit the [fine-tuning](./fine-tuning/) directo
135135

136136
For fine-tuning with quantized model, visit the [bitsandbytes](./bitsandbytes/) directory.
137137

138-
For fine-tuning with quantized model, visit the [training](./training/) directory.

examples/gpu/llm/tools/env_activate.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if "%~1"=="" (
1414
set MODE=%1
1515

1616
:: Validate MODE
17-
if not "%MODE%"=="inference" if not "%MODE%"=="fine-tuning" if not "%MODE%"=="bitsandbytes" if not "%MODE%"=="training" (
17+
if not "%MODE%"=="inference" if not "%MODE%"=="fine-tuning" if not "%MODE%"=="bitsandbytes" (
1818
echo !MSG_USAGE!
1919
exit /b 2
2020
)

examples/gpu/llm/tools/env_activate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
'directory',
2424
help = 'Directory of examples to run.',
2525
type = str,
26-
choices = ['inference', 'fine-tuning', 'bitsandbytes', 'training'],
26+
choices = ['inference', 'fine-tuning', 'bitsandbytes'],
2727
)
2828

2929
# Parse arguments

examples/gpu/llm/tools/env_activate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#!/bin/bash
22

3-
MSG_USAGE="Usage: source $0 [inference|fine-tuning|bitsandbytes|training]"
3+
MSG_USAGE="Usage: source $0 [inference|fine-tuning|bitsandbytes]"
44
if [ $# -eq 0 ]; then
55
echo ${MSG_USAGE}
66
return 1
77
fi
88
MODE=$1
9-
if [ ${MODE} != "inference" ] && [ ${MODE} != "fine-tuning" ] && [ ${MODE} != "bitsandbytes" ] && [ ${MODE} != "training" ]; then
9+
if [ ${MODE} != "inference" ] && [ ${MODE} != "fine-tuning" ] && [ ${MODE} != "bitsandbytes" ]; then
1010
echo ${MSG_USAGE}
1111
return 2
1212
fi

examples/gpu/llm/training/Mixtral/README.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

examples/gpu/llm/training/Mixtral/ds_config.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)