bigcode / starcoderplus-megatron

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: Junho 13 2023
text-generation

Introduction of starcoderplus-megatron

Model Details of starcoderplus-megatron

StarCoderPlus

Play with the instruction-tuned StarCoderPlus at StarChat-Beta .

Table of Contents
  1. Model Summary
  2. Use
  3. Limitations
  4. Training
  5. License
  6. Citation
Model Summary

This is the Megatron-LM version of StarCoderPlus .

StarCoderPlus is a fine-tuned version of StarCoderBase on 600B tokens from the English web dataset RedefinedWeb combined with StarCoderData from The Stack (v1.2) and a Wikipedia dataset. It's a 15.5B parameter Language Model trained on English and 80+ programming languages. The model uses Multi Query Attention , a context window of 8192 tokens , and was trained using the Fill-in-the-Middle objective on 1.6 trillion tokens.

Use
Intended use

The model was trained on English and GitHub code. As such it is not an instruction model and commands like "Write a function that computes the square root." do not work well. However, the instruction-tuned version in StarChat makes a capable assistant.

Feel free to share your generations in the Community tab!

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

checkpoint = "bigcode/starcoderplus"
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_hello_world():\n    <fim_suffix>\n    print('Hello world!')<fim_middle>"
inputs = tokenizer.encode(input_text, return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))
Attribution & Other Requirements

The training code dataset of the model was filtered for permissive licenses only. Nevertheless, the model can generate source code verbatim from the dataset. The code's license might require attribution and/or other specific requirements that must be respected. We provide a search index that let's you search through the pretraining data to identify where generated code came from and apply the proper attribution to your code.

Limitations

The model has been trained on a mixture of English text from the web and GitHub code. Therefore it might encounter limitations when working with non-English text, and can carry the stereotypes and biases commonly encountered online. Additionally, the generated code should be used with caution as it may contain errors, inefficiencies, or potential vulnerabilities. For a more comprehensive understanding of the base model's code limitations, please refer to See StarCoder paper .

Training

StarCoderPlus is a fine-tuned version on 600B English and code tokens of StarCoderBase, which was pre-trained on 1T code tokens. Below are the fine-tuning details:

Model
  • Architecture: GPT-2 model with multi-query attention and Fill-in-the-Middle objective
  • Finetuning steps: 150k
  • Finetuning tokens: 600B
  • Precision: bfloat16
Hardware
  • GPUs: 512 Tesla A100
  • Training time: 14 days
Software

License

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

Runs of bigcode starcoderplus-megatron on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About starcoderplus-megatron huggingface.co Model

starcoderplus-megatron huggingface.co

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

starcoderplus-megatron huggingface.co Url

https://huggingface.co/bigcode/starcoderplus-megatron

bigcode starcoderplus-megatron online free

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

bigcode starcoderplus-megatron online free url in huggingface.co:

https://huggingface.co/bigcode/starcoderplus-megatron

starcoderplus-megatron install

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

starcoderplus-megatron install url in huggingface.co:

https://huggingface.co/bigcode/starcoderplus-megatron

Url of starcoderplus-megatron

starcoderplus-megatron huggingface.co Url

Provider of starcoderplus-megatron huggingface.co

bigcode
ORGANIZATIONS

Other API from bigcode

huggingface.co

Total runs: 1.1M
Run Growth: 717.0K
Growth Rate: 68.17%
Updated: Março 04 2024
huggingface.co

Total runs: 35.3K
Run Growth: 26.7K
Growth Rate: 78.08%
Updated: Junho 11 2024
huggingface.co

Total runs: 18.6K
Run Growth: 1.0K
Growth Rate: 5.67%
Updated: Outubro 08 2024
huggingface.co

Total runs: 7.0K
Run Growth: -48.3K
Growth Rate: -719.62%
Updated: Outubro 12 2023
huggingface.co

Total runs: 2.1K
Run Growth: -472
Growth Rate: -23.95%
Updated: Maio 10 2023
huggingface.co

Total runs: 1.6K
Run Growth: -1.9K
Growth Rate: -128.21%
Updated: Maio 11 2023
huggingface.co

Total runs: 376
Run Growth: -287
Growth Rate: -101.06%
Updated: Julho 24 2023
huggingface.co

Total runs: 286
Run Growth: 93
Growth Rate: 32.52%
Updated: Agosto 17 2023
huggingface.co

Total runs: 159
Run Growth: -16
Growth Rate: -10.06%
Updated: Agosto 17 2023
huggingface.co

Total runs: 25
Run Growth: -145
Growth Rate: -580.00%
Updated: Agosto 13 2023
huggingface.co

Total runs: 19
Run Growth: 15
Growth Rate: 78.95%
Updated: Janeiro 01 2024
huggingface.co

Total runs: 18
Run Growth: 1
Growth Rate: 5.56%
Updated: Agosto 05 2023
huggingface.co

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

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated: Janeiro 14 2025