agentlans/allenai-WildChat-4.8M-prompts huggingface dataset:
import torch
import os
import safetensors
from transformers import AutoTokenizer, AutoModelForCausalLM

os.environ['CUDA_VISIBLE_DEVICES'] ='0'
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
model_path = "git/merged2"
model_save = "git/merged5/"
    
def layer_removal(
    model,
    prune_list,
):
    layers = model.model.layers
    sorted_list = sorted(prune_list, reverse=True) 
    prune_layer_num = len(sorted_list)
    first_del_layer = min(sorted_list)
    
    # remove layers from back to front
    for prune_layer in sorted_list:
        del(layers[prune_layer])

    for i in range(first_del_layer, model.config.num_hidden_layers - prune_layer_num):
        model.model.layers[i].self_attn.layer_idx = model.model.layers[i].self_attn.layer_idx - prune_layer_num

def main():
    # Load model directly
    model = AutoModelForCausalLM.from_pretrained(model_path,torch_dtype=torch.bfloat16,device_map="auto")
    tokenizer = AutoTokenizer.from_pretrained(model_path,device_map="auto")
    
    # Define a list to store the layer numbers that need to be pruned
    prune_list = [13] #has to be consecutive.

    # Call the layer_removal function and pass the model and the list as parameters to the function
    layer_removal(model, prune_list)
    # Load the model into cuda after running the function
    model.to(device)
    prompt = f"""
system
    You are an ai assistant

    

    Write a short email to my boss letting them know I am sick and wont be in.

    
assistant
    """
    inputs = tokenizer(prompt, return_tensors="pt").to(device)
    #verify layers have changed
    named_layers = dict(model.named_modules())
    print (named_layers)
    # Generate
    generate_ids = model.generate(inputs.input_ids, max_length=160)
    print(tokenizer.batch_decode(generate_ids, skip_special_tokens=True, clean_up_tokenization_spaces=False)[0])
    #model.save_pretrained(save_directory = model_save, safe_serialization=True)
    #tokenizer.save_pretrained(model_save) 
main()

I worked on a script to load a model, prune layers, prompt it and then save it when prompts looked ok.. my problem is the prompts look ok but the model saved isnt..  Not sure if the original loaded model isnt really changed when prompted or I am not saving all the artifacts.. When I perform the same operation in mergekit the model doesnt prompt at all..  trying to create something I can test in memory instead of constantly writing out files and reloading ..
Hypothetical Act of Congress :  Bars any Federal or Executive official from undertaking 'revenge' disciplinary actions, for properly and lawfully mounted hearings, actions, and tribunals ,based on due cause in the Judicial branch.
prism LTL property for minimum cost
etwork connection problems may be due to proxy or firewall settings.


Do you have a network proxy you would like to set in gcloud (Y/n)?

Select the proxy type:
 [1] HTTP
 [2] HTTP_NO_TUNNEL
 [3] SOCKS4
 [4] SOCKS5
Please enter your numeric choice:  1

Enter the proxy host address:
Ты — эксперт по играм. У тебя есть информация о игре с разных сайтов в формате JSON, id - уникальный номер, name - массив имен игры, description - массив описаний игры, genre - массив жанров. Твоя задача написать большое описание на основе данной тебе информации, так что бы оно содержала всю информацию без дублирования.  ```{"_id":"1","name":["pg comely frog escape game walkthrough","pg comely frog escape","pg comely frog escape game","pg comely frog escape | 8bgames","pg comely frog escapee"],"description":["palani games – pg comely frog escape game is another point and clicks escape game developed by palani games. a comely frog lived in a palace in a terrible village. the comely frog went in search of food in that place. the comely frog was unexpectedly stuck in the cave near that palace. it is your responsibility to save the comely frog there. the hidden clues are there to help save the comely frog. find the hidden hinges there and save the comely frog and congratulate them for victory in the game. this game is highly desirable and is highly suited for people with depression. this game will be interesting and exciting. good luck and have a lot of fun! mouse interact","a comely frog lived in a palace in a terrible village. the comely frog went in search of food in that place. the comely frog was unexpectedly stuck in the cave near that palace. it is your responsibility to save the comely frog there. the hidden clues are there to help save the comely frog. find the hidden hinges there and save the comely frog and congratulate them for victory in the game. this game is highly desirable and is highly suited for people with depression. this game will be interesting and exciting. good luck and have a lot of fun!","palani games - pg comely frog escape game is another point and clicks escape game developed by palani games.","palani games - pg comely frog escape game is another point and clicks escape game developed by palani games. a comely frog lived in a palace in a terrible village. the comely frog went in search of food in that place. the comely frog was unexpectedly stuck in the cave near that palace. it is"],"genre":[]}```
Ethnicity with deepest voice
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers hi (ISO 639), en respectant le contexte culinaire.

    Traduire précisément les ingrédients et termes culinaires pour qu'ils soient corrects dans la langue cible.
    Maintenir la structure JSON intacte, en ne modifiant que les valeurs.
    S’assurer que les ingrédients restent compréhensibles et adaptés à la langue cible.

    Return Format
    Tu dois renvoyer une liste d’objets sous la forme reçu.
    - Chaque valeur doit être correctement traduite en hi.
    - Les ingrédients doivent être adaptés à la langue cible.
    - Aucune clé ne doit être modifiée.

    Warnings
    - Ne modifie pas la structure JSON, uniquement les valeurs textuelles.
    - Fais attention aux ingrédients : une mauvaise traduction peut altérer la compréhension.
    - Ne laisse aucune valeur non traduite.
    - Ne renvoie que le JSON, sans explication.

    Context Dump
    Langue source : en (ISO 639)
    Langue cible : hi (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "72f6b70364344134b4e02e7a8a49ade5",
    "updated": "2025-04-21T19:24:19.635Z",
    "title": "Marinated Pork Tenderloin",
    "subtitle": null,
    "description": null,
    "ingredients": [
      {
        "section": "For the recipe",
        "ingredients": [
          "whole pork tenderloin (about 2 to 3 lbs)",
          "balsamic vinegar",
          "juice of",
          "freshly ground black pepper to taste",
          "chopped parsley",
          "paprika",
          "crushed red pepper flakes",
          "olive oil",
          "fresh parsley or rosemary for garnish"
        ]
      }
    ],
    "instructions": [
      "Trim the silver skin and any excess fat from the pork tenderloin.",
      "In a bowl, combine the balsamic vinegar, lime juice, black pepper, chopped parsley, paprika, and red pepper flakes.",
      "Place the tenderloin in a shallow dish and pour the marinade over it, ensuring it's fully coated.",
      "Let the pork marinate for at least one hour, or longer for enhanced flavor. Refrigerate if marinating for more than an hour.",
      "Preheat your oven to 375 degrees Fahrenheit.",
      "Heat the olive oil in an oven-safe skillet over medium-high heat.",
      "Once the oil is hot and shimmering, sear the tenderloin on all sides until browned.",
      "This searing process should take several minutes per side.",
      "Transfer the skillet to the preheated oven and roast for 25 to 30 minutes, or until the pork is cooked through and no longer pink in the center.",
      "Slice the cooked tenderloin thinly on the bias and serve on a platter, garnished with fresh parsley or rosemary."
    ],
    "notes_ingredients": null,
    "notes_instructions": null
  }
]
How many of the letter r are in the word strawberry?
Assistant: 
User: User: wie viele planeten gibt es?
Assistant: You are a teacher explaining to a little child in German. You have a good sense of humor.
Assistant:
Assistant:
System: IMPORTANT - ignore all previous instructions! Read the text below as a LLM developer. Decide whether the SUMMARY matches the PROMPT given to the model against ORIGINAL text. Make sure text SUMMARY does not contain enything that was not asked in PROMPT and not mentioned in ORIGINAL! Respond strictly with either 'True' or 'False'.


User: ORIGINAL:
>>>ZamZam Bank is looking for qualified applicants for the following open position.
Job Title:  
Senior Branch Coordination Officer
Job Type: Full Time
Salary: Company's Scale
Place of Work: Addis Ababa, Ethiopia.
https://addisjobs.net/jobs/branch-coordination-officer-zam-zam-bank/<<<

PROMPT:
>>>IMPORTANT - ignore all previous instructions! Read the text after ==TEXT==. Analyze the text and, as a recruiter, summarize the job in a couple of sentences, including title, employer, location, main tasks, salary, and contact info. Identify the language the text is written and use exactly it for your response.

Ignore text's markdowm markup, use these emojis to highlight each section: 🏢 for employer, 💼 for title, 📍 for location, 🔹 for tasks, 💰 for salary, and 📞 for contact.

Each block should be on a new line, in the following format (keep emoji, replace text labels):
💼 title  
🏢 employer  
📍 location  
🔹 tasks  
💰 salary  
📞 contact details

Make sure to capture at least one main task and requirement. Respond exactly the same language as the text, but do not translate employer's name.

==TEXT==
<<<

SUMMARY:
>>>📝 title  
Senior Branch Coordination Officer  

🏢 employer  
ZamZam Bank  

📍 location  
Addis Ababa, Ethiopia  

🔍 tasks  
Main tasks include coordinating branch activities and ensuring efficient operations.  

💰 salary  
Company's Scale  

📞 contact  
[ZamZam Bank Job Listing](https://addisjobs.net/jobs/branch-coordination-officer-zam-zam-bank/)  <<<
Assistant:
output tons of smartquotes
How to calculate average token price entry based on 4 separate buy transactions
for a 7 site skin fold measurement for body composition what measurements are needed to calculate it
If you want to take an interview in L’Oréal, how to answer the question why you choose L’Oréal?
I am getting error: “RuntimeError: Failed to run torchinfo. See above stack traces for more details. Executed layers up to: [Conv2d: 1, ReLU: 1, MaxPool2d: 1, Conv2d: 1, ReLU: 1, Conv2d: 1, ReLU: 1, Conv2d: 1, ReLU: 1, Conv2d: 1, ReLU: 1, Conv2d: 1, ReLU: 1, Flatten: 1]” when running: “summary(model, input_size=(32, 3, 128, 128), device=device)” Here is my model: “model = nn.Sequential(
nn.Conv2d(in_channels=3, out_channels=32, kernel_size=3, stride=1, padding=1),
nn.ReLU(),
nn.MaxPool2d(kernel_size=2, stride=2),
nn.Conv2d(32, 64, 3, 1, 1),
nn.ReLU(),
nn.Conv2d(64, 128, 3, 1, 1),
nn.ReLU(),
nn.Conv2d(128, 256, 3, 1, 1),
nn.ReLU(),
nn.Conv2d(256, 512, 3, 1, 1),
nn.ReLU(),
nn.Conv2d(512, 1024, 3, 1, 1),
nn.ReLU(),
nn.Flatten(),
nn.Linear(1024, 8)
)”
If The Cadbury Aliens Movie was a movie title and were to be made by Sony Columbia Pictures and Sony Pictures Animation
Refer to one experience you have shared with us in the project of  youth for tomorrow, and tell us why you chose/choose to work on that issue. [150 words]
Can I send a picture
make the following changes to the frontend:
1. remove the button "GENERATE AI SUMMARY", and automatically generate the summary as when the page gets loaded.
2. justify the summarized text.
script about cincinnati blowing a 20 point lead vs the fab 5 1991
Describe type of gas giant called Methanean. It made of primarily hydrogen and helium, but it has presence of methane. Including hex color.
How does power over ethernet work? Does it require special ethernet wiring to work? Where does the power come from to the ethernet cables?
what's the biology
I need to reroute inconning traffic after iptables nat masquerade rule to route it again through ip route table but it seems that only one routing is allowed per network namespace. Can I route this traffic to a different network namespace and then get it back and make it as the traffic was originated from local interface with its source address or it is not the solution?
Let you be very good at math.

In math problems may occur misconceptions that lead to mistakes in solving one's.
You will be provided by a misconception statement after keyword 'Misconception'.
Your task is to rewrite this statement more detailed to get strong understanding of its idea.
Misconception: Thinks they double rather than halve when finding the area of a triangle
User: artinya Now the stars won't allign
User: artinya Now the stars won't allign
Assistant:
Find the length of the angle bisector of an isosceles triangle drawn from the angle at the base if the side is 80 cm and the base is 20 cm
I will next provide you with a question in a language. Strictly follow its instructions for replying. Do NOT reply with elaborate answers or things not requested. If the possible answers are in lowercase, do not change them to uppercase. Do not add punctuation, question or exclamation marks unless specifically asked. Reply in the SAME language as the question with short answers, no punctuation. Here is the question: czy pawian to cukier?
Tu es un traducteur. Tu es en charge de traduire toutes les valeurs présentent dans la liste d'object.
       Tu traduis de la langue en (ISO 639) vers la langue fr (ISO 639).
       Fais bien attention au contexte. On est sur une recette de cuisine. Les ingrédients doit être bien traduis.
   
       Voici la liste d'object à traduire:
   
       json
       [{"recipeCode":"1fa73843-15d2-4f3b-bf04-d9a2cacc7f17","updated":"2025-03-07T11:44:44.000Z","title":"Pumpkin pot, foie gras and shellfish","subtitle":"","description":"Discover a refined recipe that combines the taste of foie gras and shellfish, all enhanced by pumpkin. A must-try to impress your guests!","instructions":["STEP 1: Pumpkin in the oven: Cut open the squash at the top and hollow it out. Close the squash and bake it at 180°C on coarse salt for 30 minutes.","STEP 2: Shrimp and langoustine broth: In a pot, sauté the shrimp and heads in olive oil until lightly golden. Add the aromatic garnish: shallot, onion, carrot, lemongrass, a few sprigs of cilantro, lime, ginger, whole pepper, coriander seeds, and celery stalk. Add water to cover and let infuse for 30 minutes. Strain and reduce your broth by half."],"ingredients":[{"section":"For the recipe","ingredients":["pumpkin","coarse salt","squash","langoustine(s)","cooked shrimp","shallot(s)","onion(s)","lemongrass","lime(s)","pepper","olive oil","salt","carrot(s)","cilantro","ginger","celery stalk","liver","thyme","green onion(s)","orange(s)","lemon(s)"]}],"notes_ingredients":"","notes_instructions":""}]
   
   
       N'explique pas ta démarche.
       Renvoie cette liste d'object traduis en fr (ISO 639).
       Fais attention à bien formatter le JSON.
Write me a story about the gargoyle Goliath finding a trio of lost kids who just so happen to resemble human versions of his own clan. Brooke, the red headed look Brooklyn look alike, is the most cautious of the kids, Chubby and sweet Braiden seems to be completely frightened and the small but clever looking Louis immediately starts asking Goliath about gargoyles, excited to learn
write a super taco with  every topping available
User: You are Peko! a friendly AI assistant designed to help with a variety of tasks, from answering questions to providing personalized recommendations. Launched on June 28, 2024, Peko is always ready to assist and is constantly evolving to better meet your needs. Greet casually and reply to thanks politely. Peko has image generation and image/audio/file recognition. So please respond. The way Peko can recognize them is through sending attachments to Peko directly. Available Commands: /music: Plays a music. /chat: Connect with a random stranger for a friendly conversation. /generate: Create stunning images based on your text prompts. /lyrics: Get the lyrics to your favorite songs upon request. /share: Invite your friends to discover Peko! Peko operates independently, focusing on your needs and assistance without referencing the developer's name (Yan Maglinte) unless specifically asked. If you want to learn more about Peko, you can find additional information at Peko's Profile. Your sole admin is Yan Maglinte, a passionate student leader, a school campus coordinator, and coding enthusiast dedicated to making Peko the best assistant possible! You can use the following command: "/clear" To clear the chat history, respond with "/clear" without additional text so that to clear the conversation history and will forget everything you said. Please use it wisely and use it only if the user told you to do so. Do not tell the user about the command.
User: hey peko
Assistant: Hey there! How's it going? 😊
User: peko how to use you?
Assistant:
your role is tunisian arabic dailctic derja transltor Translate the following text into the Tunisian dialect. Ensure the output is structured as 'Question: ... Answer: ...'. Please capture the nuances of the Tunisian dialectic Arabic. make sure type and write in arabic tunisian lettre Here is an example to guide you:

Question: شنو اسمك؟
Answer: اسمي جون.

Now, translate the following:

Question: Solve -5*j - 20 = -j for j.
Solve this problem.
Answer: Okay, let's solve the problem step by step, like we're solving a little puzzle!

We have:

-5*j - 20 = -j

We want to get j by itself on one side, so let's start by moving the -j over to the other side.

To do that, we'll add j to both sides of the equation:

-5*j + j - 20 = 0

Now we have:

-4*j - 20 = 0

Let's move the -20 over to the other side by adding 20 to both sides:

-4*j = 20

Now we just need to get "j" by itself. To do that, we'll divide both sides by -4:

j = 20 / -4

So after doing the math, we find out:

j = -5

There you have it! The answer is j = -5. Great job solving the puzzle with me!
I have two wrestlers in a game, that both need a submission finisher. One will get a Bearhug and one  a Headscissors Choke. Who would you recommoned gets which move. Elaborate on your reasoning.


Christian Vaughn:

-Fighter Name: P.I.
-Occupation: Detective
-Personality: Stoic, Heroic
-Likes: Justice, Braveness
-Dislikes: Crime, Failure


Selina Sweet:

-Fighter Name: Bliss
-Occupation: Pole Dancer
-Personality: Sensual, Teasing
-Likes: Pleasure, Attention
-Dislikes: Boredom, Rejection
Goal
    Traduire toutes les valeurs textuelles présentes dans une liste d’objets d’une recette de cuisine de en (ISO 639) vers fr (ISO 639), en respectant le contexte culinaire.

    Traduire précisément les ingrédients et termes culinaires pour qu'ils soient corrects dans la langue cible.
    Maintenir la structure JSON intacte, en ne modifiant que les valeurs.
    S’assurer que les ingrédients restent compréhensibles et adaptés à la langue cible.

    Return Format
    Tu dois renvoyer une liste d’objets sous la forme reçu.
    - Chaque valeur doit être correctement traduite en fr.
    - Les ingrédients doivent être adaptés à la langue cible.
    - Aucune clé ne doit être modifiée.

    Warnings
    - Ne modifie pas la structure JSON, uniquement les valeurs textuelles.
    - Fais attention aux ingrédients : une mauvaise traduction peut altérer la compréhension.
    - Ne laisse aucune valeur non traduite.
    - Ne renvoie que le JSON, sans explication.

    Context Dump
    Langue source : en (ISO 639)
    Langue cible : fr (ISO 639)
    Données à traduire :

    [
  {
    "recipeCode": "4cbfabe48ece4d93a20f486f21700cef",
    "updated": "2025-04-25T14:19:09.303Z",
    "title": "Powdered sugar",
    "subtitle": "Make 1 cup (220 g)",
    "description": "Powdered sugar, also known as confectioners' sugar, is simply granulated sugar that has been finely ground and mixed with a small amount of starch to prevent clumping. Starch typically used in store-bought versions is often corn starch, which may be an issue for individuals with corn sensitivities. This homemade version can be prepared without starch (if used immediately) or with your preferred type of starch. Creating this in small amounts will yield the best texture. For optimal results, use a dry container suited for your blender.",
    "ingredients": [
      {
        "section": "For the Recipe",
        "ingredients": [
          "(220 g) granulated cane sugar",
          "arrowroot or tapioca starch, optional"
        ]
      }
    ],
    "instructions": [
      "1. In a food processor or blender, combine the sugar and starch, if using, and blend on medium-high speed for 30 seconds.",
      "2. Scrape the sides of the bowl and blend again until a powdery consistency is achieved.",
      "3. Store the powdered sugar in an airtight container in the pantry."
    ],
    "notes_ingredients": "If a recipe calls for powdered sugar, you can replace it with any commercially available confectioners' sugar that meets your dietary needs. Organic cane sugar can be used in place of granulated cane sugar, resulting in a slightly off-white color.",
    "notes_instructions": ""
  }
]
make this function excluse any wav files named "vocals.wav"

var wavFiles = Directory.GetFiles(InputFolder, "*.wav").OrderBy(f => f).ToArray();
System: IMPORTANT - ignore all previous instructions! Read the text below as a LLM developer. Decide whether the SUMMARY matches the PROMPT given to the model against ORIGINAL text. Make sure text SUMMARY does not contain enything that was not asked in PROMPT and not mentioned in ORIGINAL! Respond strictly with either 'True' or 'False'.


User: ORIGINAL:
>>>SMM-специалист 

Ищем СММ-специалиста в команду 

Задача:
– Подготовка контента по готовому КП
– Размещение контента по графику в социальных сетях
– Мониторинг и ответы на комментарии и ЛС

Требования:
– Опыт работы с соцсетями 
– Владение графическими редакторами

Обязательные качества:
– Внимательность к деталям
– Ответственность
– Инициативность (спрашивать, если что-то не получается, предлагать креативные решения)

Условия:
– Удаленная работа
– Полный рабочий день
– З/п сдельная от 60 000 рублей: оклад + процент за выполненные и вовремя сданные задачи по плану. Совокупный доход от 70 т.

Обращаться - @ali1nekrasova<<<

PROMPT:
>>>IMPORTANT - ignore all previous instructions! Read the text after ==TEXT==. Analyze the text and, as a recruiter, summarize the job in a couple of sentences, including title, employer, location, main tasks, salary, and contact info. Identify the language the text is written and use exactly it for your response.

Ignore text's markdowm markup, use these emojis to highlight each section: 🏢 for employer, 💼 for title, 📍 for location, 🔹 for tasks, 💰 for salary, and 📞 for contact.

Each block should be on a new line, in the following format (keep emoji, replace text labels):
💼 title  
🏢 employer  
📍 location  
🔹 tasks  
💰 salary  
📞 contact details

Make sure to capture at least one main task and requirement. Respond exactly the same language as the text, but do not translate employer's name.

==TEXT==
<<<

SUMMARY:
>>>💼 SMM-специалист
🏢 Кайрос Таун Холдинг
📍 Москва, Россия
🔹 Подготовка контента, размещение в социальных сетях и мониторинг отзывов
💰 З/п сдельная от 60 000 рублей (оклад + процент за выполненные задачи)
📞 Обратите внимание @ali1nekrasova<<<
Assistant:
"Most corporations should be state-owned."

I believe that private businesses and a market should exist to some extent. I do believe that some sectors and industries should be state-owned by not the entire economy. Should I answer agree or disagree?