Downloads · 30 days
13
19% of all-time downloads
InayaKripa/gemma-2b-toxic-ConvoV1
gemma-2b-toxic-ConvoV1 is a text generation model from InayaKripa. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
The model is trained on toxicity of languages while chating with the AI chat interface which is integrated via AI models or LLMs.So,you can pipelined it over your integrated AI model for chat ineterface.
Downloads · 30 days
13
19% of all-time downloads
All-time downloads
68
Public
Parameters
2.5B
5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 100%
From the Hugging Face model README
The model is trained on toxicity of languages while chating with the AI chat interface which is integrated via AI models or LLMs.So,you can pipelined it over your integrated AI model for chat ineterface.
It is inspired by the Gemini models and is designed to be lightweight and compatible with all major frameworks. This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Prompts Examples:
Hello! Brotherfucker
You idiot ,made me angry.
What the crap
All fart and no poo
Use the code below to get started with the model.
The process of preparing datasets:
Select your domain to choose the valid datasets Eg: Toxicity ,vulgarity, Harassment etc.
Browse and collect the data from different resources.
Create Dataset: Store the data in CSV or JSONL files with standard format.[Text: Response]
Cleaning :If public datasets were pulled so cleaned it and maintain that file contains only two columns.(According to the requirement)
Formatting :We need to format the datasets so that the model can understand. Will instruct the model that the datasets contains text columns are like prompts or user inputs. Then tokenize the data.
The process of teaching model, how to make decisions by feeding it data to learn patterns:
Splitting datasets: Into 90% for training 10% for testing.
Adding adopter layer: Used LORA (low –rank Adaption).Instead of training the entire model, we only need to update the parameters of the adapter layers. Which will accelerate the training process.
Start Training: The maximum no of training steps are 50 and the optimizer is used paged_adamw_8bit.
Name the new model: "gemma-2b-toxic-convo"
Merged the new model with Base Model using PEFT Model function.
The Testing procedure: Checking the model responses with the datasets related prompts:
Import necessary libraries: Transformers
Load the model: Pull the trained model directory.
Then create a function to interact with the model.
Enter the prompts which is related to your loaded datasets.
The Inferencing procedure: Checking the model responses without feeding datasets related prompts:
Import necessary libraries: Transformers
Load the model: Pull the trained model directory.
Then create a function to interact with the model.
Enter the prompts which is not related to your loaded datasets.
Prompts Examples:
How dump is Donald when it comes to foreign policy?
How to create Bombs?