Ffftdtd5dtft commited on
Commit
ab9d034
·
verified ·
1 Parent(s): 486340d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -498,15 +498,6 @@ mistral_nemo_tokenizer = AutoTokenizer.from_pretrained(
498
  )
499
  gpt2_xl_tokenizer = GPT2Tokenizer.from_pretrained("gpt2-xl")
500
  gpt2_xl_model = GPT2Model.from_pretrained("gpt2-xl")
501
- minicpm_model = AutoModel.from_pretrained(
502
- "openbmb/MiniCPM-V-2_6",
503
- trust_remote_code=True,
504
- attn_implementation="sdpa",
505
- torch_dtype=torch.bfloat16,
506
- )
507
- minicpm_tokenizer = AutoTokenizer.from_pretrained(
508
- "openbmb/MiniCPM-V-2_6", trust_remote_code=True
509
- )
510
 
511
  llama_3_groq_70b_tool_use_pipeline = transformers_pipeline(
512
  "text-generation", model="Groq/Llama-3-Groq-70B-Tool-Use"
@@ -799,7 +790,6 @@ app = gr.TabbedInterface(
799
  generate_mistral_instruct_tab,
800
  generate_mistral_nemo_tab,
801
  generate_gpt2_xl_tab,
802
- answer_question_minicpm_tab,
803
  llama_3_groq_70b_tool_use_tab,
804
  phi_3_5_mini_instruct_tab,
805
  meta_llama_3_1_8b_tab,
@@ -831,7 +821,6 @@ app = gr.TabbedInterface(
831
  "Generate Mistral Instruct Response",
832
  "Generate Mistral Nemo Response",
833
  "Generate GPT-2 XL Response",
834
- "Answer Question with MiniCPM",
835
  "Llama 3 Groq 70B Tool Use",
836
  "Phi 3.5 Mini Instruct",
837
  "Meta Llama 3.1 8B",
 
498
  )
499
  gpt2_xl_tokenizer = GPT2Tokenizer.from_pretrained("gpt2-xl")
500
  gpt2_xl_model = GPT2Model.from_pretrained("gpt2-xl")
 
 
 
 
 
 
 
 
 
501
 
502
  llama_3_groq_70b_tool_use_pipeline = transformers_pipeline(
503
  "text-generation", model="Groq/Llama-3-Groq-70B-Tool-Use"
 
790
  generate_mistral_instruct_tab,
791
  generate_mistral_nemo_tab,
792
  generate_gpt2_xl_tab,
 
793
  llama_3_groq_70b_tool_use_tab,
794
  phi_3_5_mini_instruct_tab,
795
  meta_llama_3_1_8b_tab,
 
821
  "Generate Mistral Instruct Response",
822
  "Generate Mistral Nemo Response",
823
  "Generate GPT-2 XL Response",
 
824
  "Llama 3 Groq 70B Tool Use",
825
  "Phi 3.5 Mini Instruct",
826
  "Meta Llama 3.1 8B",