rishabhjain16 commited on
Commit
51c5917
1 Parent(s): 13a4be5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -1,8 +1,11 @@
1
  import gradio as gr
2
  import torch
 
3
  from transformers import AutoModelForCausalLM, AutoTokenizer
4
  from transformers import StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer
5
  from threading import Thread
 
 
6
 
7
  # Loading the tokenizer and model from Hugging Face's model hub.
8
  tokenizer = AutoTokenizer.from_pretrained("CohereForAI/c4ai-command-r-v01-4bit")
 
1
  import gradio as gr
2
  import torch
3
+ from transformers import BitsAndBytesConfig
4
  from transformers import AutoModelForCausalLM, AutoTokenizer
5
  from transformers import StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer
6
  from threading import Thread
7
+ import bitsandbytes
8
+
9
 
10
  # Loading the tokenizer and model from Hugging Face's model hub.
11
  tokenizer = AutoTokenizer.from_pretrained("CohereForAI/c4ai-command-r-v01-4bit")