Views
No views yet
1import gradio as gr
2
3gr.load("models/codys12/Mistral-7b-Pathway-128k-3").launch()1<iframe
2 src="https://your.hf.space"
3 frameborder="0"
4 width="850"
5 height="450"
6></iframe>1def generate(
2message: str,
3chat_history: list[tuple[str, str]],#Conversation history
4system_prompt: str = "",
5instruction: str = None,#The goal of the current conversation
6conclusions: list[tuple[str, str]] = None,#AI classification of conversation ending
7#^ Formatted: [["CONCLUSION_KEY","Conclusion criteria"]]
8context: list[str] = None,#List of strings to be used as context. Indexes that were used will be returned.
9max_new_tokens: int = 1024,#Max new tokens to generate
10temperature: float = 0.6,#Temperature hyperparameter
11top_p: float = 0.9,#Top-p hyperparameter
12top_k: int = 50, #Top-k hyperparameter
13repetition_penalty: float = 1.2, #Repitition hyperparameter
14end_sequences: list[str] = ["[INST]", "[/INST]", "\n"]#Sequences that break the generation and returnLICENSE file for details.