bigcode / tiny_starcoder_py

huggingface.co
Total runs: 183.3K
24-hour runs: -16.2K
7-day runs: -73.1K
30-day runs: -47.4K
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

183.3K
Total runs
-16.2K
24-hour runs
-31.2K
3-day runs
-73.1K
7-day runs
-47.4K
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: 37.9K
Run Growth: -45.4K
Growth Rate: -112.66%
Updated:March 04 2024
huggingface.co

Total runs: 25.7K
Run Growth: -4.5K
Growth Rate: -17.84%
Updated:June 11 2024
huggingface.co

Total runs: 10.8K
Run Growth: 7.6K
Growth Rate: 65.02%
Updated:October 09 2024
huggingface.co

Total runs: 6.2K
Run Growth: -4.2K
Growth Rate: -67.92%
Updated:October 13 2023
huggingface.co

Total runs: 774
Run Growth: 4.0K
Growth Rate: 73.57%
Updated:July 24 2023
huggingface.co

Total runs: 486
Run Growth: -160
Growth Rate: -32.45%
Updated:August 18 2023
huggingface.co

Total runs: 337
Run Growth: -48
Growth Rate: -16.67%
Updated:May 10 2023
huggingface.co

Total runs: 257
Run Growth: 63
Growth Rate: 24.14%
Updated:August 05 2023
huggingface.co

Total runs: 254
Run Growth: 70
Growth Rate: 27.03%
Updated:August 05 2023
huggingface.co

Total runs: 230
Run Growth: 37
Growth Rate: 15.95%
Updated:August 18 2023
huggingface.co

Total runs: 13
Run Growth: 3
Growth Rate: 23.08%
Updated:January 02 2024
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