File size: 577 Bytes
612bdbb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# LoRA Extraction Scripts

Scripts used to extract LoRA adapters from the Biomni-R0-32B model.

## Files

- `extract_lora_256.sh` - SLURM batch script for LoRA extraction using MergeKit
- `sanitize_lora.py` - Script to sanitize LoRA adapters for vLLM compatibility

## Usage

### Extraction

```bash
sbatch extract_lora_256.sh
```

### Sanitization (for vLLM)

```bash
python sanitize_lora.py
```

The sanitization script:
1. Removes unsupported layers (lm_head, embed_tokens, norms)
2. Fixes adapter_config.json for vLLM compatibility
3. Creates backups before making changes