mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Add missing exception
This commit is contained in:
parent
3345da2ea4
commit
fbac6d21ca
@ -1,4 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
|
import traceback
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Any, Dict, Optional, Union
|
from typing import Any, Dict, Optional, Union
|
||||||
|
|
||||||
@ -21,6 +22,9 @@ except ModuleNotFoundError:
|
|||||||
'https://github.com/Dao-AILab/flash-attention#installation-and-features'
|
'https://github.com/Dao-AILab/flash-attention#installation-and-features'
|
||||||
)
|
)
|
||||||
pass
|
pass
|
||||||
|
except Exception:
|
||||||
|
logger.warning('Failed to load flash-attention due to the following error:\n')
|
||||||
|
traceback.print_exc()
|
||||||
|
|
||||||
|
|
||||||
class Exllamav2HF(PreTrainedModel):
|
class Exllamav2HF(PreTrainedModel):
|
||||||
|
Loading…
Reference in New Issue
Block a user