Spaces:
Running
Running
Paulie-Aditya
commited on
Commit
·
002e0f5
1
Parent(s):
685b00b
hopefully no mle this time
Browse files- app.py +2 -2
- requirements.txt +0 -1
app.py
CHANGED
@@ -11,7 +11,7 @@ class Assistant:
|
|
11 |
device_map = 'auto'
|
12 |
# bnb_config = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",bnb_4bit_compute_dtype=torch.float16,)
|
13 |
# self.model = AutoModelForCausalLM.from_pretrained( model_name,quantization_config=bnb_config, trust_remote_code=True,use_cache=False,device_map=device_map)
|
14 |
-
self.model = AutoModelForCausalLM.from_pretrained( model_name, trust_remote_code=True,use_cache=
|
15 |
|
16 |
self.tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
17 |
self.tokenizer.pad_token = self.tokenizer.eos_token
|
@@ -49,4 +49,4 @@ demo = gr.ChatInterface(
|
|
49 |
|
50 |
|
51 |
if __name__ == "__main__":
|
52 |
-
demo.launch()
|
|
|
11 |
device_map = 'auto'
|
12 |
# bnb_config = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",bnb_4bit_compute_dtype=torch.float16,)
|
13 |
# self.model = AutoModelForCausalLM.from_pretrained( model_name,quantization_config=bnb_config, trust_remote_code=True,use_cache=False,device_map=device_map)
|
14 |
+
self.model = AutoModelForCausalLM.from_pretrained( model_name, trust_remote_code=True,use_cache=False,device_map=device_map)
|
15 |
|
16 |
self.tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
|
17 |
self.tokenizer.pad_token = self.tokenizer.eos_token
|
|
|
49 |
|
50 |
|
51 |
if __name__ == "__main__":
|
52 |
+
demo.launch()
|
requirements.txt
CHANGED
@@ -2,7 +2,6 @@ accelerate==1.2.1
|
|
2 |
aiofiles==23.2.1
|
3 |
annotated-types==0.7.0
|
4 |
anyio==4.7.0
|
5 |
-
bitsandbytes==0.45.0
|
6 |
certifi==2024.12.14
|
7 |
charset-normalizer==3.4.1
|
8 |
click==8.1.8
|
|
|
2 |
aiofiles==23.2.1
|
3 |
annotated-types==0.7.0
|
4 |
anyio==4.7.0
|
|
|
5 |
certifi==2024.12.14
|
6 |
charset-normalizer==3.4.1
|
7 |
click==8.1.8
|