Run this model with HF Jobs

Run Recor2d/GPT2-ChineseDevBench on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/Recor2d/GPT2-ChineseDevBench. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Recor2d/GPT2-ChineseDevBench on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/Recor2d/GPT2-ChineseDevBench. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/Recor2d/GPT2-ChineseDevBench. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

GPT2-ChineseDevBench

This model is based on uer/gpt2-chinese-cluecorpussmall and is intended for Chinese text generation experiments.

Model Details

  • Base model: uer/gpt2-chinese-cluecorpussmall
  • Language: Chinese
  • Task: Text Generation
  • Framework: Transformers / PyTorch

Intended Use

This model can be used for Chinese text generation research, testing, and development experiments.

How to Use

from transformers import AutoTokenizer, AutoModelForCausalLM, pipeline

model_id = "Recor2d/GPT2-ChineseDevBench"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
print(generator("่ฟ™ๆ˜ฏๅพˆไน…ไน‹ๅ‰็š„ไบ‹ๆƒ…ไบ†", max_length=100, do_sample=True))
Downloads last month
3,647
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for Recor2d/GPT2-ChineseDevBench

Finetuned
(7)
this model