import torch from PIL import Image import gradio as gr import spaces from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer import os from threading import Thread import random from datasets import load_dataset HF_TOKEN = os.environ.get("HF_TOKEN", None) MODEL_ID = "aixsatoshi/Meta-Llama-3.1-8B-Instruct-plus-Swallow" MODELS = os.environ.get("MODELS") MODEL_NAME = MODEL_ID.split("/")[-1] TITLE = "

New japanese LLM model webui

" DESCRIPTION = f"""

MODEL: