bigcode / santacoderpack

huggingface.co
Total runs: 147
24-hour runs: -1
7-day runs: 16
30-day runs: 38
Model's Last Updated: August 16 2023
text-generation

Introduction of santacoderpack

Model Details of santacoderpack

Octopack

Table of Contents

  1. Model Summary
  2. Use
  3. Training
  4. Citation

Model Summary

SantaCoderPack is an pre-trained model with the same architecture of SantaCoder on CommitPack using this format:

<commit_before>code_before<commit_msg>message<commit_after>code_after

Use

Intended use

The model follows instructions provided in the input. We recommend prefacing your input with "def has_close_elements(numbers: List[float], threshold: float) -> bool:\n for idx, elem in enumerate(numbers):\n for idx2, elem2 in enumerate(numbers):\n if idx != idx2:\n distance = elem - elem2\n if distance < threshold:\n return True\n\n return FalseFix bugs in has_close_elements."

Feel free to share your generations in the Community tab!

Generation
# pip install -q transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
checkpoint = "bigcode/santacoderpack"
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("Q<commit_before>def has_close_elements(numbers: List[float], threshold: float) -> bool:\n    for idx, elem in enumerate(numbers):\n        for idx2, elem2 in enumerate(numbers):\n            if idx != idx2:\n                distance = elem - elem2\n                if distance < threshold:\n                    return True\n\n    return False<commit_message>Fix bugs in has_close_elements.<commit_after>", return_tensors="pt").to(device)
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0]))

Training

Model
  • Architecture: GPT-2 model with multi-query attention
  • Steps: 250k pretraining
  • Pretraining tokens: 131B
  • Precision: bfloat16
Hardware
  • Pretraining:
    • GPUs: 32 Tesla A100
    • Training time: 15 days
Software

Citation

@article{muennighoff2023octopack,
      title={OctoPack: Instruction Tuning Code Large Language Models}, 
      author={Niklas Muennighoff and Qian Liu and Armel Zebaze and Qinkai Zheng and Binyuan Hui and Terry Yue Zhuo and Swayam Singh and Xiangru Tang and Leandro von Werra and Shayne Longpre},
      journal={arXiv preprint arXiv:2308.07124},
      year={2023}
}

Runs of bigcode santacoderpack on huggingface.co

147
Total runs
-1
24-hour runs
2
3-day runs
16
7-day runs
38
30-day runs

More Information About santacoderpack huggingface.co Model

More santacoderpack license Visit here:

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

santacoderpack huggingface.co

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

santacoderpack huggingface.co Url

https://huggingface.co/bigcode/santacoderpack

bigcode santacoderpack online free

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

bigcode santacoderpack online free url in huggingface.co:

https://huggingface.co/bigcode/santacoderpack

santacoderpack install

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

santacoderpack install url in huggingface.co:

https://huggingface.co/bigcode/santacoderpack

Url of santacoderpack

santacoderpack huggingface.co Url

Provider of santacoderpack huggingface.co

bigcode
ORGANIZATIONS

Other API from bigcode

huggingface.co

Total runs: 172.4K
Run Growth: -12.3K
Growth Rate: -7.14%
Updated:March 04 2024
huggingface.co

Total runs: 12.8K
Run Growth: -11.4K
Growth Rate: -89.46%
Updated:October 09 2024
huggingface.co

Total runs: 4.7K
Run Growth: -957
Growth Rate: -20.30%
Updated:October 13 2023
huggingface.co

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

Total runs: 424
Run Growth: -691
Growth Rate: -162.97%
Updated:July 24 2023
huggingface.co

Total runs: 262
Run Growth: 94
Growth Rate: 35.88%
Updated:August 18 2023
huggingface.co

Total runs: 197
Run Growth: -37
Growth Rate: -18.69%
Updated:August 05 2023
huggingface.co

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

Total runs: 158
Run Growth: 35
Growth Rate: 21.08%
Updated:August 05 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