Downloads · 30 days
0
0% of all-time downloads
codys12/Mistral-7b-Pathway-128k-3
Mistral-7b-Pathway-128k-3 is a machine learning model from codys12. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This repository contains a fine-tuned version of the Mistral 7B model, specifically designed for creating pseudo-deterministic chatbots. The goal of this project is to enhance the predictability and consistency of cha…
Downloads · 30 days
0
0% of all-time downloads
All-time downloads
448
Public
Repo size
13.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors13.6 MB · 99%
From the Hugging Face model README
This repository contains a fine-tuned version of the Mistral 7B model, specifically designed for creating pseudo-deterministic chatbots. The goal of this project is to enhance the predictability and consistency of chatbot responses while maintaining the flexibility and adaptability of the Mistral 7B model.
Deploying the Model: You can deploy from the model repo (here) by clicking "Deploy" in the upper right corner. or with Inference Endpoints SDK
Running the Gradio Demo: You can deploy directly from hugginface or with Python:
import gradio as gr
gr.load("models/codys12/Mistral-7b-Pathway-128k-3").launch()
You can embed the space with the URL found in the upper right of the space with "Share"
<iframe
src="https://your.hf.space"
frameborder="0"
width="850"
height="450"
></iframe>
def generate(
message: str,
chat_history: list[tuple[str, str]],#Conversation history
system_prompt: str = "",
instruction: str = None,#The goal of the current conversation
conclusions: list[tuple[str, str]] = None,#AI classification of conversation ending
#^ Formatted: [["CONCLUSION_KEY","Conclusion criteria"]]
context: list[str] = None,#List of strings to be used as context. Indexes that were used will be returned.
max_new_tokens: int = 1024,#Max new tokens to generate
temperature: float = 0.6,#Temperature hyperparameter
top_p: float = 0.9,#Top-p hyperparameter
top_k: int = 50, #Top-k hyperparameter
repetition_penalty: float = 1.2, #Repitition hyperparameter
end_sequences: list[str] = ["[INST]", "[/INST]", "\n"]#Sequences that break the generation and return
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.