常用命令行
netsh winsock reset
docker pull intel/intel-extension-for-pytorch:gpu
docker run -it --device /dev/dri -v L::/data -p 7860:7860 intel/intel-extension-for-pytorch:gpu
docker run -it --privileged -v L::/data -p 7860:7860 intel/intel-extension-for-pytorch:gpu
docker run -it --device /dev/dxg -v /mnt:/data -p 7860:7860 intel/intel-extension-for-pytorch:gpu
python -c "import torch;import intel_extension_for_pytorch as ipex;print(ipex.xpu.get_device_name(0))"
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
docker attach
python -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple torch1.13.1 torchvision0.14.1 torch-directml
python L:\LLAMA\to.py --base_model L:\LLAMA\LLaMA-HFv2\llama-7b --lora_model L:\LLAMA\chinese_alpaca_lora_7b --output_dir L:\LLAMA\alpaca-7b-out
torchrun --standalone --nproc_per_node 1 interact.py --ckpt_dir /data --tokenizer_path /data/tokenizer.model --max_batch_size 32 --max_seq_len 128
python -c "import torch;import intel_extension_for_pytorch as ipex;print(ipex.xpu.get_device_name(0))"
python -c "import torch;import intel_extension_for_pytorch as ipex;print(ipex.xpu.device_count())"