Spaces:
Runtime error
Runtime error
Update app.py
Browse files60 unmodified lines6162636465666760 unmodified linesload_dotenv()# Create llmllm = CTransformers(streaming=True,model = AutoModel.from_pretrained("NousResearch/Nous-Hermes-llama-2-7b"),callbacks=[StreamingStdOutCallbackHandler()],model_type="llama", config={'max_new_tokens': 500, 'temperature': 0.01})# llm = Replicate(60 unmodified lines6162636465666760 unmodified linesload_dotenv()# Create llmllm = CTransformers(streaming=True,model = AutoModelForCausalLM.from_pretrained("NousResearch/Nous-Hermes-llama-2-7b", device_map='auto',torch_dtype=torch.float16,load_in_4bit=True, token=True ),callbacks=[StreamingStdOutCallbackHandler()],model_type="llama", config={'max_new_tokens': 500, 'temperature': 0.01})# llm = Replicate(
app.py+1-1