Search is not available for this dataset
prompt_hash stringlengths 64 64 | original_dataset_name stringclasses 1
value | model_name stringclasses 1
value | generation_settings dict | analysis stringlengths 107 808 | classification stringclasses 5
values | topics sequencelengths 0 38 | text stringlengths 612 64.4k |
|---|---|---|---|---|---|---|---|
6daeb78642d8e1a360cf36bfe06d15d21e04dd54935ba17b7cea3e8421fc6d80 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text discusses the decline of Y Combinator's focus on Africa and the emergence of local accelerators like Accelerate Africa and GoTime AI to fill the gap. It also touches on the challenges facing African startups, including a lack of local capital and the trend of AI startups lagging behind in Africa compared to We... | news | [
"accelerate africa",
"Africa",
"GoTime AI",
"resilience17",
"Y Combinator",
"yc"
] | # As YC retreats from Africa, alumni launch accelerators to fill the gap
By Tage Kene-Okafor
December 7th, 2024 03:15 PM
---
The influential accelerator Y Combinator made a splash in Africa in 2020 when it shined its light on the market and began to accept startups from the region into its cohorts. The move was hu... |
10bafc90147758c4f88f9d7dd32dbd65bd71106cce257833aa383cef77f2b18f | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text provides a detailed account of the ongoing Syrian civil war, including recent advances by rebel forces and the response from the government and international actors. It covers specific locations such as Homs and Damascus, and discusses the involvement of various factions including the Syrian government, rebels... | news | [
"Middle East crisis",
"Damascus",
"Jordan",
"Syria",
"War and unrest",
"Civil wars",
"Army",
"Human rights and civil liberties"
] | # Syrian rebels advance on heavily defended city of Homs and Damascus suburbs
December 7th, 2024 03:14 PM
---
UN special envoy for Syria calls for urgent talks to ensure 'orderly political transition'
Syrian rebels continued their lightning advance on Saturday, with news they were active in the suburbs of the capit... |
319c3c972fa4be044550802993d9df5e58a49566640f8f18337259b02f1cc2fc | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text provides factual reporting on a clash between Pakistani security forces and militant groups near the Afghan border. It includes details about casualties, the involvement of the Tehrik-i-Taliban Pakistan, and the alleged support from the Afghan Taliban government. The tone is neutral and objective, focusing on... | news | [
"Extremism Watch",
"South & Central Asia",
"TTP",
"Tehrik-i-Taliban Pakistan",
"Afghanistan",
"Pakistan"
] | # Clashes kill 6 Pakistan troops, 22 militants near Afghan border
By Ayaz Gul
December 7th, 2024 04:36 PM
---
Pakistan said Saturday that a predawn assault on a security post and intelligence-driven counterinsurgency raids in its northwestern province bordering Afghanistan killed at least six troops and 22 militan... |
39be4d3618027d6bfb960637cda708dd2a5a2e43e495051c08bd854364239169 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text discusses the philosophy and practice of translation, exploring how translators create new experiences for readers through their work. It examines the evolution of translation, its challenges, and the importance of authenticity and experience in the translation process. The author, Damion Searls, offers a phen... | opinion | [
"translation",
"writing",
"literature"
] | # What Does a Translator Do?
By Max Norman
December 7th, 2024 06:00 AM
---
Damion Searls, who has translated a Nobel laureate, believes his craft isn't about transforming or reflecting a text. It's about conjuring one's experience of it.
Jon Fosse's "Septology," the seven-novel sequence about art and God that hel... |
1b9ccaca6452518f15f92634decea10c99b8f51668b71f5f9ab368bc125d6c18 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text provides a detailed evaluation and critique of the Korg MicroKorg 2 synthesizer, discussing its features, performance, and comparisons to previous models and competitors. It offers a balanced perspective on the instrument's strengths and weaknesses. | review | [
"review",
"reviews",
"music",
"audio",
"shopping"
] | # SEO: Korg MicroKorg 2 Review: Better, Not Best
By Terrence O'Brien
December 7th, 2024 10:03 AM
---
This tiny synth is a solid upgrade, but it lives in a sea of excellent competitors.
Introduced in 2002, the MicroKorg became one of the best-selling synthesizers of all time. But a lot has changed since then. In t... |
af702e3a735f7a30c6b449957ab9de140194f71f548e4be4769fa38d1b55429a | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text reviews a sunrise alarm clock, comparing it to another product and offering personal preferences. It discusses features such as brightness, sound options, and setup processes. The author recommends a different product over the Hatch Restore 2. | review | [
"shopping",
"household",
"sleep",
"rants and raves",
"wired's favorite gifts"
] | # Skip the Viral Hatch Restore 2 for This Brighter, Cheaper Clock
By Nena Farrell
December 7th, 2024 09:02 AM
---
After testing many, many sunrise alarm clocks, I recommend the Lumie Bodyclock Shine 300 for your perpetually sleepy loved one.
Everytime someone finds out I write about sunrise alarm clocks, they ask... |
289dcbc4ab46608732a8cf1f53fa2b8860959f86c63ac1accf24572a1232219a | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text describes a photographer's work capturing childbirth experiences during the COVID-19 pandemic, focusing on the intimate and personal aspects of home births. The text includes details about the photographer's process, the emotions and challenges faced by the mothers, and the artistic approach taken in the phot... | opinion | [
"child birth",
"covid-19",
"photography"
] | # A Photographer's Intimate Chronicle of Home Birth
By Jessica Winter
December 7th, 2024 06:00 AM
---
Maggie Shannon's black-and-white images of childbirth in the COVID era capture the awe-inspiring, quotidian experience of turning one person into two.
In the early, terrifying days of the coronavirus pandemic in ... |
60dd504c6649a57f26e449682d807d6ba15ee575535299e113f2c96000782546 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text provides a detailed list of young venture capitalists under the age of 30 in New York City, highlighting their backgrounds, notable projects, and personal interests. It is a factual report on current events in the venture capital industry, focusing on emerging leaders and their impact on the industry. | news | [
"evergreens",
"GenZVC",
"venture capital"
] | # New York's top VCs under 30
By Dominic-Madori Davis
December 7th, 2024 03:09 PM
---
The next generation of New York City investors are already making their mark in the Big Apple.
They come from big-name venture firms like Female Founders Fund and Lerer Hippeau and smaller ones like Chai Ventures. They work in a... |
1ac2f6e64893578fc92d5ae026c398ef42e3b99f80d1285abbfbc4c2c4413f5c | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text is a factual report on the impact of Storm Darragh on the United Kingdom, including power cuts, train cancellations, and other disruptions. It is written in a news-like style with a focus on current events. | news | [
"Europe",
"United Kingdom",
"storm darragh"
] | # Power cuts, train cancellations as Storm Darragh batters UK
By Agence France-Presse
December 7th, 2024 04:06 PM
---
Tens of thousands of people across the U.K. were left without power Saturday morning after Storm Darragh hit the country with strong winds and caused pre-Christmas travel disruptions.
The U.K.'s M... |
d755b5c7c1cce817c083c7c2708c2682871701d6427dc58ceb33ca3b372f7865 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text is a personal account of a person's experience returning to the place where their family was interned during World War II. It reflects on the family's history, the internment, and the personal impact on the individual. The text is written in a first-person narrative and provides a detailed account of the auth... | opinion | [
"Japanese Canadian internment",
"first person",
"British Columbia",
"Edmonton",
"Kaslo B.C.",
"Toronto",
"Vancouver",
"University of British Columbia",
"Harbours",
"World War II",
"Education",
"Students"
] | # My Japanese grandpa questions my decision to return to B.C. — the place where he lost so much
By Nicole Ing
December 7th, 2024 09:00 AM
---
Returning to the place my family was forced to leave during the internment brings conflicting feelings
This First Person column is written by Nicole Ing, who lives in Vanco... |
d49c84445646e4bb7f7c892914e2da3afa103874b06fb711ac671fcb8c409514 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text discusses the potential ban of TikTok in the United States due to national security concerns and legal challenges. It covers the reasons behind the ban, the timeline for potential implementation, and the reactions from TikTok and its users. The text is factual and objective, providing information about the leg... | news | [
"Social media",
"TikTok",
"China",
"Apps",
"Donald Trump",
"United States"
] | # US TikTok ban: When and why could the app be outlawed?
By Liv McMahon
July 20th, 2020 11:34 PM
---
TikTok has suffered a setback in its fight against a law which will ban it in the US unless it is sold by ByteDance, its Chinese parent company.
In December, a court in the US rejected its attempt to appeal the la... |
391941fd597a4d4fc2edff2f8837ac3cea72a3b4579366e622dd7b33de9732f7 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text is a news article reporting on a photographer's experience and the photo she took in a garbage dump in Ghana. It provides details about the setting, her motivation for taking the photo, and the process of capturing it. The text aims to raise awareness about environmental issues and the impact of second-hand c... | news | [
"One Extraordinary Photo"
] | # One Extraordinary Photo: A cow grazing in a garbage dump in Ghana
By MISPER APAWU
December 6th, 2024 09:29 AM
---
ACRA, Ghana (AP) — Misper Apawu is a photographer based in Accra and works across West Africa. She focuses on exposing social issues with an emphasis on narratives about women, sports and the environ... |
749b580b403c4ddfdaa08460212894d3ab831bd954920042b3861981bcd79465 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text provides a summary of four startups from Y Combinator's Fall cohort that are particularly relevant to enterprise customers, focusing on their AI capabilities and solutions. It includes details about each startup's product, benefits, and why they are noteworthy for enterprise adoption. The content is factual an... | news | [
"Enterprise",
"venture capital",
"Y Combinator",
"AI",
"enterprise startups",
"enterprise tech",
"artificial intelligence"
] | # The four startups from YC's Fall batch that enterprises should pay attention to
By Rebecca Szkutak
December 7th, 2024 03:00 PM
---
Notable Silicon Valley startup accelerator Y Combinator held a Demo Day for its inaugural Fall cohort this week.
The 95 startups in this latest batch looked quite similar to recent ... |
040b3cf2e012a6c9479777fe2a2f71676d2d5bd6b0c6e608c2bc42b3c0749c03 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text provides a detailed review of the Asus Vivobook S 14 OLED laptop, discussing its hardware specifications, performance, and features. It also mentions the pros and cons of the product. This clearly fits the criteria for a product review. | review | [
"shopping",
"review",
"reviews",
"laptops",
"computers",
"asus",
"windows"
] | # Asus Vivobook S 14 OLED Review: A Simple and Effective Laptop
By Daniel Thorp-Lancaster
December 7th, 2024 08:30 AM
---
It's not flashy, but this Asus laptop has all the power you probably need plus a crisp OLED display.
It's easy to get caught up in the flashiness of laptop specs and designs in the high-end se... |
6a33ce79d564c0b374c747b9e6850b0317e5929408995b325743febb0f0ff02f | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text discusses a news event involving a proposed coal mining project in Alberta, Canada, and the subsequent discussions around annexation between two municipalities. It reports on the voting results, the opposition from the nearby Municipal District of Ranchland, and the potential legal and political ramifications... | news | [
"Northback Holdings",
"Alberta Municipal Government Act",
"Grassy Mountain Coal Project",
"Alberta",
"High River",
"Alberta Energy Regulator",
"Government of Alberta",
"Municipal District of Ranchland",
"Municipality of Crowsnest Pass",
"Town of High River",
"Blair Painter",
"Brian Jean",
"... | # After 'Yes' vote on coal, Crowsnest Pass council now wants to annex land of proposed mine
By Joel Dryden
December 7th, 2024 01:00 PM
---
Relations with nearby district have been 'cold' recently, Crowsnest Pass mayor says
Crowsnest Pass Mayor Blair Painter says council will explore an annexation of the nearby Mu... |
4cbb0d437c00ab6ec4ceeea2c7f2032f2370e037ece9341be55a277971c54d44 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text is a detailed account of a political crisis in France, including the dissolution of the government, the formation of a new coalition, and the subsequent vote to oust the Prime Minister. It provides a comprehensive analysis of the political situation and the motivations of the key players involved. | news | [] | # President Emmanuel Macron Has Plunged France into Chaos
By Lauren Collins
December 7th, 2024 06:00 AM
---
Lawmakers have toppled the government for the first time since 1962. How did we get here?
At the end of July, Lucie Castets was planning to go to Italy with a group of friends. Every year, they rented a hou... |
f835ba81cc19aa15a0cda185197658f0cd84134a0b5d679aa6676793e2880aef | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text discusses various animals and their roles in people's lives, focusing on their ability to provide comfort and distract from difficult topics. It also touches on some tragic events involving animals, such as the death of Crumbs the cat. The author's personal experience with animal content and her reflections o... | opinion | [
"animals",
"pets"
] | # The Animals That Made It All Worth It
By Naomi Fry
December 7th, 2024 06:00 AM
---
This year, it was hard to feel good about humans. Moo Deng, Crumbs, and Pilaf kept us sane.
Like many Internet users, I love nothing more than animal content. In the decade or so since I've joined Instagram, I've probably spent d... |
374461fe4b39e5a623646c055879f3e998c8ae71f23f13c07c553037c472c6a1 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | The text provides step-by-step instructions on how to free up more screen real estate on a Mac, including tips for adjusting settings and using external displays. It is a how-to guide. | other | [
"how-to",
"tips",
"mac",
"software",
"macos"
] | # Try These Tricks to Free Up More Screen Real Estate on a Mac
By Justin Pot
December 7th, 2024 07:30 AM
---
There are several ways to keep the elements on your Mac's screen from getting in the way of your work. Try these tips to free up some visual space.
Does your Mac's desktop feel ... crowded? Is there not en... |
1f1756b4f2664fa8cfab6310b559ad1c2f7fbf3c34c7281d1d6cfaebf71dcbb9 | PJMixers-Dev/Fundus-105K-Formatted | bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf | {
"max_context_length": 16384,
"max_length": 512,
"min_p": 0.01,
"nsigma": 1,
"rep_pen": 1,
"sampler_order": [
6,
5,
0,
1,
3,
4,
2
],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
],
"temperature": 0.6,
"tfs": 1,
"top_a": 0,
"top_k": 0,
"top_p": 1,
"ty... | This text discusses the restoration and reopening of Notre-Dame Cathedral in Paris after a catastrophic fire in 2019. It covers historical context, the role of Victor Hugo's novel in its preservation, and the current restoration efforts. The text is written in a factual and informative manner, presenting the events and... | news | [
"Walt Disney Company",
"France",
"Paris",
"Agnes Poirier",
"Bradley Stephens",
"Michel Picaud",
"President Emanuel Macron",
"Victor Hugo",
"Fiction",
"Movies",
"Fires",
"Roman Catholicism"
] | # Notre-Dame Cathedral to reopen after 2019 fire. It's not the first time it needed saving
By Jonathan Ore
December 7th, 2024 09:00 AM
---
French landmark was nearly demolished before Victor Hugo's 1831 novel argued for its historical importance
This weekend's reopening of the Notre-Dame Cathedral in Paris is the... |
End of preview. Expand in Data Studio
Your primary purpose is classifying text. There are multiple options to choose from: "News", "Review", "Opinion", "Advertising", and "Other".
"News" means the text is reporting on current events in a factual and objective manner. Basically, it's a news article.
"Review" means the text evaluates or critiques a product, service, or creative work.
"Opinion" means the text presents a personal viewpoint or argument on a topic.
"Advertising" means the text is designed to promote or sell a product, service, or idea.
"Other" means the text is random, irrelevant, nonsensical, spam, a how-to, a quiz, a guide, or any information that does not fit into the other categories.
You must reply with a few sentences analyzing the input text on the first line, followed by the classification on the second line (without quotes). Do not provide any other text.
import requests
import json
from tqdm import tqdm
from datasets import load_dataset
import pandas as pd
import hashlib
import os
def get_token_count(string):
tokencount_response = (
requests.post(
f"http://localhost:5001/api/extra/tokencount",
json={"prompt": string},
).json()["value"]
)
return tokencount_response
def verify_response_text(text):
"""
Verifies that the provided text (after stripping) has exactly two nonempty lines,
and that the second line is either "news" or "junk" (case-insensitive).
"""
# Strip the text and split into lines, filtering out any empty lines.
lines = [line.strip() for line in text.strip().splitlines() if line.strip()]
# Must have exactly 2 nonempty lines.
if len(lines) != 2:
return False
first_line, second_line = lines
if first_line.strip().endswith(":"):
return False
if second_line.lower().replace("classification:", "").replace("\"", "").replace("'", "").strip() in {
"news", "review", "opinion", "advertising", "other", "how-to"
}:
return True
else:
print(f"Bad Classification: {second_line.lower().strip()}")
return False
def create_response(message_log, generation_settings):
"""
Continuously requests a generation until the response satisfies:
- The stop reason is either 1 or 2, and
- The response text consists of exactly 2 nonempty lines with a valid second line.
Returns the first line (as-is) and the second line in lowercase.
"""
while True:
# Generate response text.
generation_response = requests.post(
"http://localhost:5001/api/v1/generate",
json={
"prompt": message_log,
**generation_settings
}
).json()["results"][0]["text"].strip()
# Retrieve the stop reason.
stop_reason = requests.get("http://127.0.0.1:5001/api/extra/perf").json()["stop_reason"]
# Check that the stop_reason is valid and the response text is formatted correctly.
if stop_reason not in (1, 2):
print("Stop token not generated. Retrying.")
elif not verify_response_text(generation_response):
print("Proper format not generated. Retrying.")
else:
break
# Use the filtered lines from the verified response.
lines = [line.strip() for line in generation_response.splitlines() if line.strip()]
first_line = lines[0].strip()
second_line = lines[1].lower().replace("classification:", "").replace("\"", "").replace("'", "").strip()
return first_line, second_line
system_prompt = (
"Your primary purpose is classifying text. There are multiple options to choose from: \"News\", \"Review\", \"Opinion\", \"Advertising\", and \"Other\".\n\n"
"\"News\" means the text is reporting on current events in a factual and objective manner. Basically, it's a news article.\n"
"\"Review\" means the text evaluates or critiques a product, service, or creative work.\n"
"\"Opinion\" means the text presents a personal viewpoint or argument on a topic.\n"
"\"Advertising\" means the text is designed to promote or sell a product, service, or idea.\n"
"\"Other\" means the text is random, irrelevant, nonsensical, spam, a how-to, a quiz, a guide, or any information that does not fit into the other categories.\n\n"
"You must reply with a few sentences analyzing the input text on the first line, followed by the classification on the second line (without quotes). Do not provide any other text."
)
model_name = "bartowski/Qwen2.5-Coder-7B-Instruct-GGUF/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf"
original_dataset_name = "PJMixers-Dev/Fundus-105K-Formatted"
generation_settings = {
"max_context_length": 16384,
"max_length": 512,
"rep_pen": 1, # Disabled
"temperature": 0.6,
"nsigma": 1,
"top_k": 0, # Disabled
"top_a": 0, # Disabled
"tfs": 1, # Disabled
"typical": 1, # Disabled
"top_p": 1, # Disabled
"min_p": 0.01,
"sampler_order": [6, 5, 0, 1, 3, 4, 2],
"stop_sequence": [
"<|im_start|>",
"<|im_end|>"
]
}
output_parquet_file = (
"./downloaded_datasets/converted/PJMixers-Dev_Fundus-105K-Formatted-Qwen2.5-Coder-7B-Instruct-Classified.parquet"
)
dataset = load_dataset(original_dataset_name)["train"]
classifications = {
"news": 0,
"review": 0,
"opinion": 0,
"advertising": 0,
"other": 0
}
# Load existing output data if available from parquet
# TODO: Load classification counts
if os.path.exists(output_parquet_file):
try:
df = pd.read_parquet(output_parquet_file)
output_data_list = json.loads(df.to_json(orient="records"))
processed_hashes = {entry["prompt_hash"] for entry in output_data_list}
for sample in output_data_list:
classifications[sample["classification"]] += 1
print(f"Resuming dataset: {len(processed_hashes)}/{len(dataset)}")
except Exception as e:
print(f"Error loading parquet file {output_parquet_file}: {e}")
output_data_list = []
processed_hashes = set()
else:
output_data_list = []
processed_hashes = set()
for sample in tqdm(dataset):
prompt = (
f"<|im_start|>system\n"
f"{system_prompt}<|im_end|>\n"
f"<|im_start|>user\n"
f"{'Text Tags: ' + (str(sample['topics']) + '\n\n') if sample['topics'] else ''}"
f"```md\n"
f"{sample['text'].strip()}\n"
f"```<|im_end|>\n"
f"<|im_start|>assistant\n"
)
prompt_hash = str(hashlib.sha256(prompt.encode()).hexdigest())
# Skip already processed samples
if prompt_hash in processed_hashes:
continue
if get_token_count(prompt) > generation_settings["max_context_length"] - generation_settings["max_length"]:
print("Too long. Skipping")
continue
analysis, classification = create_response(
prompt,
generation_settings
)
if classification == "how-to":
classification = "other"
classifications[classification] += 1
max_len_classifications = max(len(str(v)) for v in classifications.values())
print(
f"|-------------|{'-' * (max_len_classifications + 2)}|---------|\n"
f"| News | {classifications['news']:>{max_len_classifications}} | {((classifications['news'] / sum(classifications.values())) * 100):>6.2f}% |\n"
f"| Review | {classifications['review']:>{max_len_classifications}} | {((classifications['review'] / sum(classifications.values())) * 100):>6.2f}% |\n"
f"| Opinion | {classifications['opinion']:>{max_len_classifications}} | {((classifications['opinion'] / sum(classifications.values())) * 100):>6.2f}% |\n"
f"| Advertising | {classifications['advertising']:>{max_len_classifications}} | {((classifications['advertising'] / sum(classifications.values())) * 100):>6.2f}% |\n"
f"| Other | {classifications['other']:>{max_len_classifications}} | {((classifications['other'] / sum(classifications.values())) * 100):>6.2f}% |\n"
f"|-------------|{"-" * len(f" {classifications['news']} ")}|---------|"
)
output_data_list.append(
{
"prompt_hash": prompt_hash,
"original_dataset_name": original_dataset_name,
"model_name": model_name,
"generation_settings": generation_settings,
"analysis": analysis,
"classification": classification,
"topics": sample["topics"],
"text": sample["text"]
}
)
if len(output_data_list) != 0 and len(output_data_list) % 100 == 0:
df = pd.DataFrame(output_data_list)
df.to_parquet(
output_parquet_file,
index=False,
compression="brotli"
)
df = None
del df
df = pd.DataFrame(output_data_list)
df.to_parquet(
output_parquet_file,
index=False,
compression="brotli"
)
- Downloads last month
- 3