Chris STC
commited on
Commit
·
5d33991
1
Parent(s):
48d64e8
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import torch
|
2 |
from transformers import BitsAndBytesConfig
|
|
|
3 |
|
4 |
quantization_config = BitsAndBytesConfig(
|
5 |
load_in_4bit=True,
|
@@ -11,7 +12,6 @@ quantization_config = BitsAndBytesConfig(
|
|
11 |
# My version with smaller chunks on safetensors for low RAM environments
|
12 |
model_id = "vilsonrodrigues/falcon-7b-instruct-sharded"
|
13 |
|
14 |
-
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
15 |
model_4bit = AutoModelForCausalLM.from_pretrained(
|
16 |
model_id,
|
17 |
device_map="auto",
|
|
|
1 |
import torch
|
2 |
from transformers import BitsAndBytesConfig
|
3 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
|
5 |
quantization_config = BitsAndBytesConfig(
|
6 |
load_in_4bit=True,
|
|
|
12 |
# My version with smaller chunks on safetensors for low RAM environments
|
13 |
model_id = "vilsonrodrigues/falcon-7b-instruct-sharded"
|
14 |
|
|
|
15 |
model_4bit = AutoModelForCausalLM.from_pretrained(
|
16 |
model_id,
|
17 |
device_map="auto",
|