Spaces:
Build error
Build error
clementsan commited on
Commit ·
e27125d
1
Parent(s): fe331ff
Add TinyLlama-1.1B-Chat-v1.0 model
Browse files23 unmodified lines2425262728293031323372 unmodified lines10610710810911011123 unmodified linesllm_name1 = "mistralai/Mistral-7B-Instruct-v0.2"llm_name2 = "mistralai/Mistral-7B-Instruct-v0.1"llm_name3 = "meta-llama/Llama-2-7b-chat-hf"llm_name4 = "microsoft/phi-2"llm_name5 = "mosaicml/mpt-7b-instruct"llm_name6 = "tiiuae/falcon-7b-instruct"llm_name7 = "google/flan-t5-xxl"list_llm = [llm_name0, llm_name1, llm_name2, llm_name3, llm_name4, llm_name5, llm_name6, llm_name7]list_llm_simple = [os.path.basename(llm) for llm in list_llm]72 unmodified linesrepo_id=llm_model,model_kwargs={"temperature": temperature, "max_new_tokens": max_tokens, "top_k": top_k, "trust_remote_code": True, "torch_dtype": "auto"})else:llm = HuggingFaceHub(repo_id=llm_model,23 unmodified lines242526272829303132333472 unmodified lines10710810911011111211311411511611723 unmodified linesllm_name1 = "mistralai/Mistral-7B-Instruct-v0.2"llm_name2 = "mistralai/Mistral-7B-Instruct-v0.1"llm_name3 = "meta-llama/Llama-2-7b-chat-hf"llm_name4 = "TinyLlama/TinyLlama-1.1B-Chat-v1.0"llm_name5 = "microsoft/phi-2"llm_name6 = "mosaicml/mpt-7b-instruct"llm_name7 = "tiiuae/falcon-7b-instruct"llm_name8 = "google/flan-t5-xxl"list_llm = [llm_name0, llm_name1, llm_name2, llm_name3, llm_name4, llm_name5, llm_name6, llm_name7]list_llm_simple = [os.path.basename(llm) for llm in list_llm]72 unmodified linesrepo_id=llm_model,model_kwargs={"temperature": temperature, "max_new_tokens": max_tokens, "top_k": top_k, "trust_remote_code": True, "torch_dtype": "auto"})elif llm_model == "TinyLlama/TinyLlama-1.1B-Chat-v1.0":llm = HuggingFaceHub(repo_id=llm_model,model_kwargs={"temperature": temperature, "max_new_tokens": 256, "top_k": top_k, "torch_dtype": "auto"})else:llm = HuggingFaceHub(repo_id=llm_model,
app.py+10-4