Update README.md
Browse files
README.md
CHANGED
|
@@ -230,25 +230,21 @@ Lance is a lightweight native unified multimodal model that supports **image and
|
|
| 230 |
|
| 231 |
### Installation Steps
|
| 232 |
|
|
|
|
| 233 |
First, clone the repository:
|
| 234 |
|
| 235 |
```bash
|
| 236 |
-
git clone https://github.com/bytedance
|
| 237 |
cd Lance
|
| 238 |
```
|
| 239 |
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
```bash
|
| 243 |
-
bash ./setup_env.sh
|
| 244 |
-
pip install flash-attn==2.8.3 --no-build-isolation
|
| 245 |
-
```
|
| 246 |
|
| 247 |
-
#### Option 2: Manual Setup (Recommended)
|
| 248 |
```bash
|
| 249 |
-
conda create -n Lance python=3.11
|
| 250 |
-
|
| 251 |
-
pip install
|
|
|
|
| 252 |
pip install flash-attn==2.8.3 --no-build-isolation
|
| 253 |
```
|
| 254 |
|
|
@@ -260,6 +256,7 @@ pip install flash-attn==2.8.3 --no-build-isolation
|
|
| 260 |
> ```
|
| 261 |
|
| 262 |
|
|
|
|
| 263 |
### Download Model Weights
|
| 264 |
|
| 265 |
Please download all necessary model checkpoints from [Lance-3B on Hugging Face](https://huggingface.co/bytedance-research/Lance) and place them in the `downloads/` directory.
|
|
|
|
| 230 |
|
| 231 |
### Installation Steps
|
| 232 |
|
| 233 |
+
|
| 234 |
First, clone the repository:
|
| 235 |
|
| 236 |
```bash
|
| 237 |
+
git clone https://github.com/bytedance/Lance.git
|
| 238 |
cd Lance
|
| 239 |
```
|
| 240 |
|
| 241 |
+
Then, set up the environment:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 242 |
|
|
|
|
| 243 |
```bash
|
| 244 |
+
conda create -n Lance python=3.11 -y
|
| 245 |
+
conda activate Lance
|
| 246 |
+
pip install torch==2.5.1+cu124 torchvision==0.20.1+cu124 torchaudio==2.5.1+cu124 --index-url https://download.pytorch.org/whl/cu124
|
| 247 |
+
pip install -r requirements.txt
|
| 248 |
pip install flash-attn==2.8.3 --no-build-isolation
|
| 249 |
```
|
| 250 |
|
|
|
|
| 256 |
> ```
|
| 257 |
|
| 258 |
|
| 259 |
+
|
| 260 |
### Download Model Weights
|
| 261 |
|
| 262 |
Please download all necessary model checkpoints from [Lance-3B on Hugging Face](https://huggingface.co/bytedance-research/Lance) and place them in the `downloads/` directory.
|