bigcode / tiny_starcoder_py

huggingface.co
Total runs: 214.3K
24-hour runs: -8.7K
7-day runs: -24.2K
30-day runs: -42.6K
Model's Last Updated: June 01 2023
text-generation

Introduction of tiny_starcoder_py

Model Details of tiny_starcoder_py

TinyStarCoderPy

This is a 164M parameters model with the same architecture as StarCoder (8k context length, MQA & FIM). It was trained on the Python data from StarCoderData for ~6 epochs which amounts to 100B tokens.

Use
Intended use

The model was trained on GitHub code, to assist with some tasks like Assisted Generation . For pure code completion, we advise using our 15B models StarCoder or StarCoderBase .

Generation
# pip install -q transformers
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "bigcode/tiny_starcoder_py"
device = "cuda" # for GPU usage or "cpu" for CPU usage

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint).to(device)

inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
Fill-in-the-middle

Fill-in-the-middle uses special tokens to identify the prefix/middle/suffix part of the input and output:

input_text = "<fim_prefix>def print_one_two_three():\n    print('one')\n    <fim_suffix>\n    print('three')<fim_middle>"
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))

Training

Model
  • Architecture: GPT-2 model with multi-query attention and Fill-in-the-Middle objective
  • Pretraining steps: 50k
  • Pretraining tokens: 100 billion
  • Precision: bfloat16
Hardware
  • GPUs: 32 Tesla A100
  • Training time: 18 hours
Software

License

The model is licensed under the BigCode OpenRAIL-M v1 license agreement. You can find the full agreement here .

Runs of bigcode tiny_starcoder_py on huggingface.co

214.3K
Total runs
-8.7K
24-hour runs
-21.3K
3-day runs
-24.2K
7-day runs
-42.6K
30-day runs

More Information About tiny_starcoder_py huggingface.co Model

More tiny_starcoder_py license Visit here:

https://choosealicense.com/licenses/bigcode-openrail-m

tiny_starcoder_py huggingface.co

tiny_starcoder_py huggingface.co is an AI model on huggingface.co that provides tiny_starcoder_py's model effect (), which can be used instantly with this bigcode tiny_starcoder_py model. huggingface.co supports a free trial of the tiny_starcoder_py model, and also provides paid use of the tiny_starcoder_py. Support call tiny_starcoder_py model through api, including Node.js, Python, http.

tiny_starcoder_py huggingface.co Url

https://huggingface.co/bigcode/tiny_starcoder_py

bigcode tiny_starcoder_py online free

tiny_starcoder_py huggingface.co is an online trial and call api platform, which integrates tiny_starcoder_py's modeling effects, including api services, and provides a free online trial of tiny_starcoder_py, you can try tiny_starcoder_py online for free by clicking the link below.

bigcode tiny_starcoder_py online free url in huggingface.co:

https://huggingface.co/bigcode/tiny_starcoder_py

tiny_starcoder_py install

tiny_starcoder_py is an open source model from GitHub that offers a free installation service, and any user can find tiny_starcoder_py on GitHub to install. At the same time, huggingface.co provides the effect of tiny_starcoder_py install, users can directly use tiny_starcoder_py installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

tiny_starcoder_py install url in huggingface.co:

https://huggingface.co/bigcode/tiny_starcoder_py

Url of tiny_starcoder_py

tiny_starcoder_py huggingface.co Url

Provider of tiny_starcoder_py huggingface.co

bigcode
ORGANIZATIONS

Other API from bigcode

huggingface.co

Total runs: 124.9K
Run Growth: -75.3K
Growth Rate: -60.24%
Updated:March 04 2024
huggingface.co

Total runs: 39.7K
Run Growth: 30.3K
Growth Rate: 76.34%
Updated:June 11 2024
huggingface.co

Total runs: 7.6K
Run Growth: -9.0K
Growth Rate: -118.73%
Updated:October 09 2024
huggingface.co

Total runs: 6.5K
Run Growth: 1.6K
Growth Rate: 25.01%
Updated:October 13 2023
huggingface.co

Total runs: 4.4K
Run Growth: 3.3K
Growth Rate: 75.17%
Updated:May 10 2023
huggingface.co

Total runs: 333
Run Growth: 111
Growth Rate: 33.33%
Updated:August 18 2023
huggingface.co

Total runs: 206
Run Growth: 12
Growth Rate: 5.83%
Updated:August 05 2023
huggingface.co

Total runs: 185
Run Growth: -21
Growth Rate: -11.35%
Updated:July 24 2023
huggingface.co

Total runs: 172
Run Growth: 45
Growth Rate: 26.16%
Updated:August 05 2023
huggingface.co

Total runs: 149
Run Growth: -8
Growth Rate: -5.37%
Updated:August 18 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 28 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:February 24 2025