Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
index
int64
0
0
repo_id
stringlengths
15
98
file_path
stringlengths
33
130
content
stringlengths
27
14.4M
0
hf_public_repos
hf_public_repos/olm-training/train_model.py
import logging import sys from dataclasses import dataclass, field from typing import Optional from t5_data_collator import DataCollatorForT5MLM, compute_t5_input_and_target_lengths from transformers import ( HfArgumentParser, AutoModelForMaskedLM, AutoModelForCausalLM, T5ForConditionalGeneration, ...
0
hf_public_repos
hf_public_repos/olm-training/create_tokenizer.py
from datasets import concatenate_datasets, load_dataset from tqdm import tqdm from transformers import AutoTokenizer from itertools import chain import math import argparse parser = argparse.ArgumentParser(description="Constructs a Tokenizer from a list of input datasets. It uses all available CPUs by default.") parse...
0
hf_public_repos
hf_public_repos/olm-training/t5_data_collator.py
''' Note that this code mostly comes from https://github.com/huggingface/transformers/blob/main/examples/flax/language-modeling/run_t5_mlm_flax.py with some modifications. The code here doesn't rely on flax anymore. ''' from typing import Dict, List import numpy as np from transformers import ( BatchEncoding, ...
0
hf_public_repos
hf_public_repos/olm-training/requirements.txt
datasets==2.6.1 transformers==4.24.0 torch==1.13.0 tensorboard==2.10.1
0
hf_public_repos
hf_public_repos/olm-training/README.md
# Online Language Modelling Training Pipeline This repo has the code for training models and tokenizers on the olm data, but it should work with any Hugging Face dataset with text examples. You can see the models for the OLM project here: https://huggingface.co/olm. They actually get better performance than their orig...
0
hf_public_repos
hf_public_repos/olm-training/chunk_and_tokenize_datasets.py
from datasets import concatenate_datasets, load_dataset from tqdm import tqdm from transformers import AutoTokenizer from itertools import chain import math import argparse parser = argparse.ArgumentParser(description="Constructs a tokenized dataset from an input tokenizer and a list of input datasets. Also chunks the...
0
hf_public_repos
hf_public_repos/olm-training/LICENSE
Copyright 2022- The Hugging Face team. All rights reserved. Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" s...
0
hf_public_repos
hf_public_repos/node-question-answering/tsconfig.json
{ "compilerOptions": { "skipLibCheck": true, /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ "target": "ES2018", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or...
0
hf_public_repos
hf_public_repos/node-question-answering/DistilBERT_to_SavedModel.ipynb
import tensorflow as tf from transformers import TFDistilBertForQuestionAnswering distilbert = TFDistilBertForQuestionAnswering.from_pretrained('distilbert-base-cased-distilled-squad')concrete_function = tf.function(distilbert.call).get_concrete_function([tf.TensorSpec([None, 384], tf.int32, name="input_ids"), tf.Tens...
0
hf_public_repos
hf_public_repos/node-question-answering/.eslintrc.json
{ "root": true, "env": { "es6": true, "node": true }, "extends": [ "eslint:recommended", "plugin:prettier/recommended" ], "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" }, "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2019, ...
0
hf_public_repos
hf_public_repos/node-question-answering/.prettierrc.json
{ "$schema": "http://json.schemastore.org/prettierrc", "printWidth": 90 }
End of preview. Expand in Data Studio

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

dataset used for training, per https://huggingface.co/blog/personal-copilot

Downloads last month
234