Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
text
stringlengths
0
128k
# YTPlaylistToCSV Successor to YTPlaylistGrabber. Gets YouTube playlist data and generates a basic CSV file. Can be run locally. Zip archive includes key for YouTube's API and was added to SCM won't index it. Tested on Firefox 35 and Chrome 40. Can be run locally. ####Usage Just open index.html in a modern browser. E...
Talk:Modding/Cutscene Commands/@comment-37385845-20190131223952 Can you guys help? I'm trying to make change the time to 1:00PM but it doesn't work.
import { User } from '../../entities/User' import { IUsersRepository } from '../../repositories/IUsersRepositories' interface IUserRequest { name: string username: string email: string } class CreateUserService { constructor(private usersRepository: IUsersRepository) {} async execute({ email, username, nam...
--- --- # TLDR; What is this all about? [See me in action conducting a sample interview here!](sample) It may seem as though I am talking to myself, but I am actually playing the role of both the interviewer and the interviewee # Introduction Welcome to Tyler Citrin's website for Indiana University's School of In...
Page:History of New South Wales from the records, Volume 2.djvu/63 THE GUABJ)IAK. 47 . The loss of the Guardian was not a public misfortune ^^®® only, it told severely on individuals in the community. Friends of the officers in England, knowing that they would ^JJJSi be in want of many necessaries, sent out supplies ...
Linq2XML Query problem (not accepting ':' in names) i have a xml file which has following elements: <rs:data> <z:row<EMAIL_ADDRESS>type='1'/> i need to access them by using Linq2Xml. My problem is that i get an exception which tells me that the ':' sign can not be used in Names. my Linq2Xml Query is: var rowQuery = fr...
Coat is a Gear Item. Effect The holder of takes 20% less damage when hit by techniques. Location Reward from the Travel Writer side quest after visiting Tucma.
/*! Copyright 2019 Ron Buckton Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in wr...
Compatibility with older python versions Hi ! The use of from __future__ import annotations, and subsequent postponed annotations, prevents xstate to be used with version 3.6 of python, despite being still officially supported. Can you ensure the compatibility with that version ? Hi Aluriak, You are correct 3.6 is ...
How to overlap elements along both width and height, taking on minimum value for each? I want to have elements that overlay each other, such that the parent takes on the minimum height and width needed to contain them. Inspired from this question, I've come up with the below solution. See this identical JSFiddle. #me...
Clearing cookies, why is specific value required? I am reading up on clearing cookies. Say a cookie is set with setcookie("abc", "xyz", time()+3600), then from what I've read you unset it by using setcookie("abc", "xyz", time()-3600) which sets the cookie to expire in the past. All the examples I've seen use this forma...
Extreme Negative Gamma I see Zero Hedge, talk about extreme negative gamma position of dealers all the time which it then ties back to market moves. I was wondering how do you calculate such market positioning based on publicly available data. Has someone done it or any ideas how to do it? This is what flow derivative...
New treatment plans are now being designed all of the time, and second, or even 3rd opinions may provide the client more information about freshly learned prosperous methods.
~°* THEATRE OF ANATOMY, MEDICINE, &c. % 2. Blenheim-Street, Great Marlborough-Street. E SUMMER COURSE. of: LECTURES, at this School, will. Os TSI aie begin on Monday,"June.7, ; - Anatomy, Physiology, and Surgery, by Mr. Brooxns, daily, at Seven “in the Morning.—Dissections as usual. : i > . Chemistry, Materia Medica, &...
require 'rails_helper' RSpec.describe SkillsController, type: :controller do let(:user) { create(:user) } before do sign_in user end describe 'create #POST' do let!(:skill) { create(:skill, name: 'rollerblade') } it 'creates a new skill if it does not exist yet' do expect{ post :create, us...
from being situated in Portland Ridge, Vere. The following is a section of part of this cave, in which two or three circum stances deserve attention, as they cannot fail to remind the reader of some of Prof. Buckland's cavern sections. A stalagmitic floor (A) rests upon a fine silty clay (B), the d^th of which I c...
const { eventValidationSchema } = require('common'); const validationMiddleware = require('../validationMiddleware'); const validate = validationMiddleware(eventValidationSchema); describe('validationMiddleware', () => { const next = jest.fn(); const send = jest.fn(); const res = { status: jest.fn().mockI...
How to manage a Garden extermination of these pests often requires a large expendi ture in time, money, and plant energy. Even if already you are troubled with the same undesirable foes, there is surely no reason why you should increase the stock. This is one of the chief dangers of what we might term jumble sales...
[Congressional Record (Bound Edition), Volume 160 (2014), Part 11] [Senate] [Page 15316] TRIBUTE TO DONNA KUETHE Mrs. SHAHEEN. Mr. President, I wish to recognize the achievements of Donna Kuethe, Recreation Director for the town of Moultonborough, NH, who was recently named New England W...
Deviprasad R. D, Satyanarayana GNV, Asati A, Muralidharan K, Mudiam MKR. Development of a multi‐class method to quantify phthalates, pharmaceuticals and personal care products in river water using ultra‐high performance liquid chromatography coupled with quadrupole hybrid Orbitrap mass spectrometry. Anal Sci Adv. 2021;...
Board Thread:Suggestions/@comment-27020934-20160927194501/@comment-25414035-20160927202240 The M939 I made wont be added and I wont make the 2500.
[Crim. No. 8309. Third Dist. Feb. 27, 1979.] THE PEOPLE, Plaintiff and Respondent, v. JOSEPH MICHAEL REMIRO et al., Defendants and Appellants. Counsel Richard K. Turner, James D. Garbolino, under appointments by the Court of Appeal, Alan V. Pineschi and Katherine Mader for Defendants and...
Structure and Development of the Nephridia. 345 consideration. Child (1900) has given an accurate account of the early development within the eg-g-membrane. My own descriptions will have reference to the metamorphosis and larvai development up to a period at which most of the detìuitive external characte ristics ar...
using System.Threading.Tasks; using Discord; using Discord.Commands; namespace AtlasBotNode.Modules.Smash { [Group("SSBU")] public class SmashUltimateModule : ModuleBase { [Command("character")] public async Task GetCharacter(string characterName) { var embedBuilder = n...
End of preview. Expand in Data Studio

Comma v0.1 Training Dataset (10 Billion Token Sample)

This is a 10 billion token subset of the Comma v0.1 Training Set intended as a convenience for small deep learning experiments. It is similar in spirit to the 1 billion token RedPajama sample which is no longer functioning with HuggingFace transformers due to involving the execution of arbitrary code at load time.

Method

The data was subsetted using the following script:

import os
import json
import gzip
import math
import random
import requests
from pathlib import Path
from tqdm import tqdm
from datasets import load_dataset
from transformers import AutoTokenizer
from argparse import ArgumentParser

parser = ArgumentParser()
parser.add_argument("--output-dir", type=Path, default="shards")
parser.add_argument("--tokens", default=10**9, type=int,
                    help="The number of tokens to subset.")
parser.add_argument("--shard-size", type=int, default=(250 * (10 ** 6)))
args = parser.parse_args()

tokenizer = AutoTokenizer.from_pretrained("common-pile/comma-v0.1-1t")
dataset = load_dataset("common-pile/comma_v0.1_training_dataset")

if not os.path.exists("shards"):
    os.mkdir("shards")

used = set()
token_count = 0
shard_index = 0
if os.path.exists("subset_resume.json"):
    with open("subset_resume.json") as infile:
        data = json.load(infile)
        spans = set(data["used"])
        token_count = data["token_count"]
        shard_index = data["shard_index"]

num_shards = math.ceil(args.tokens / args.shard_size)
milestone = args.shard_size
progress = tqdm(total=args.tokens)
while token_count < args.tokens:
    progress.set_description(f"Tokens Processed (Shard {shard_index})")
    filename = f"train-{shard_index:05d}-of-{num_shards:05d}.jsonl.gz"
    filepath = Path(args.output_dir) / filename
    with gzip.open(filepath, 'wt', encoding='utf-8') as outfile:
        while token_count < milestone:
            choices = set()
            for i in range(64):
                choice = random.randrange(dataset["train"].num_rows)
                while choice in used:
                    choice = random.randrange(dataset["train"].num_rows)
                used.add(choice)
                choices.add(choice)
            assert len(choices) == 64
            items = []
            for choice in choices:
                items.append(dataset["train"][choice])
            texts = [item["text"] for item in items]
            new_tokens = sum([len(i) for i in tokenizer(texts)["input_ids"]])
            token_count += new_tokens
            progress.update(new_tokens)
            for item in items:
                json_line = json.dumps(item)
                outfile.write(json_line + "\n")
            if token_count > milestone:
                with open("subset_resume.json", "w") as outfile:
                    serial_used = list(used)
                    json.dump({"used":serial_used, "token_count":token_count, "shard_index":shard_index}, outfile)
        milestone += args.shard_size
    shard_index += 1

Feel free to adapt and use this script to make other subsets.

Downloads last month
7