-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathpostBuild.bash
More file actions
31 lines (31 loc) · 1.46 KB
/
postBuild.bash
File metadata and controls
31 lines (31 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# SPDX-FileCopyrightText: Copyright (c) <2024> NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#!/bin/bash
# This file contains bash commands that will be executed at the end of the container build process,
# after all system packages and programming language specific package have been installed.
#
# Note: This file may be removed if you don't need to use it
set -e
cd ~
sudo apt update
sudo apt install -y python3.10-venv
python3 -m venv llama-factory-env
git clone --depth 1 https://github.com/hiyouga/LLaMA-Factory.git
cd LLaMA-Factory
$HOME/llama-factory-env/bin/pip install -e ".[metrics]"
$HOME/llama-factory-env/bin/pip install bitsandbytes>=0.43.0
#$HOME/llama-factory-env/bin/pip install vllm>=0.4.3
pip install "nvidia-modelopt[all]~=0.11.0" --extra-index-url https://pypi.nvidia.com
#$HOME/llama-factory-env/bin/pip install "unsloth[cu121-torch240] @ git+https://github.com/unslothai/unsloth.git"