Spaces:
Paused
Paused
Samet Yilmaz commited on
Commit ·
f9fa47c
1
Parent(s): aa97fb8
Change config
Browse files123456789101112from vllm import LLM, SamplingParamsimport gradio as grrepo_id = "mistral-community/pixtral-12b-240910" #Replace to the model you would like to usesampling_params = SamplingParams(temperature=0.8, top_p=0.95)# @spaces.GPU #[uncomment to use ZeroGPU]def infer(image_url, prompt, progress=gr.Progress(track_tqdm=True)):# tokenize image urls and textllm = LLM(model="mistralai/Pixtral-12B-2409", load_params_config=True) # Name or path of your modelmessages = [{"role": "user",12345678910111213141516from vllm import LLM, SamplingParamsimport gradio as grrepo_id = "mistral-community/pixtral-12b-240910" #Replace to the model you would like to usesampling_params = SamplingParams(max_tokens=8192, temperature=0.7)max_tokens_per_img = 4096max_img_per_msg = 5# @spaces.GPU #[uncomment to use ZeroGPU]def infer(image_url, prompt, progress=gr.Progress(track_tqdm=True)):# tokenize image urls and textllm = LLM(model="mistralai/Pixtral-12B-2409",tokenizer_mode="mistral",limit_mm_per_prompt={"image": max_img_per_msg}) # Name or path of your modelmessages = [{"role": "user",
app.py+6-2