Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- app.py +1 -1
- requirements.txt +1 -2
app.py
CHANGED
@@ -28,7 +28,7 @@ def main():
|
|
28 |
probe = BinaryProbe(config).cuda()
|
29 |
probe.load_state_dict(torch.load('probe.pt'))
|
30 |
|
31 |
-
runner = PairwiseExtractionRunner.from_pretrained('mistralai/Mistral-7B-Instruct-v0.1', optimize=
|
32 |
device = "cpu" if args.no_cuda else "cuda"
|
33 |
lock = Lock()
|
34 |
|
|
|
28 |
probe = BinaryProbe(config).cuda()
|
29 |
probe.load_state_dict(torch.load('probe.pt'))
|
30 |
|
31 |
+
runner = PairwiseExtractionRunner.from_pretrained('mistralai/Mistral-7B-Instruct-v0.1', optimize=False, torch_dtype=torch.float16, max_memory=mdict, device_map=dmap, low_cpu_mem_usage=True)
|
32 |
device = "cpu" if args.no_cuda else "cuda"
|
33 |
lock = Lock()
|
34 |
|
requirements.txt
CHANGED
@@ -2,5 +2,4 @@ torch
|
|
2 |
torchvision
|
3 |
torchaudio
|
4 |
gradio==3.36.1
|
5 |
-
biasprobe
|
6 |
-
flash-attn
|
|
|
2 |
torchvision
|
3 |
torchaudio
|
4 |
gradio==3.36.1
|
5 |
+
biasprobe
|
|