bigcode / astraios-ptuning

huggingface.co
Total runs: 5
24-hour runs: 0
7-day runs: -1
30-day runs: 2
Model's Last Updated: January 02 2024

Introduction of astraios-ptuning

Model Details of astraios-ptuning

Astraios: Parameter-Efficient Instruction Tuning Code Large Language Models

Astraios

Table of Contents

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

Model Summary

Astraios-P-Tuning is an instruction tuned model with 15.5B parameters created by finetuning StarCoderBase on CommitPackFT & OASST as described in the Astraios paper.

  • Repository: bigcode-project/astraios
  • Paper: Astraios: Parameter-Efficient Instruction Tuning Code Large Language Models
  • Languages: 80+ Programming languages
  • ✨Astraios:
    Data CommitPackFT+OASST Filtered version of CommitPack and OASST for high-quality commit messages that resemble instructions
    Model Astraios-1B Collection of StarCoderBase-1B models instruction tuned on CommitPackFT + OASST with different tuning methods
    Astraios-3B Collection of StarCoderBase-3B (3B parameters) models instruction tuned on CommitPackFT + OASST with different tuning methods
    Astraios-7B Collection of StarCoderBase-7B (7B parameters) models instruction tuned on CommitPackFT + OASST with different tuning methods
    Astraios-16B Collection of StarCoderBase-16B (16B parameters) models instruction tuned on CommitPackFT + OASST with different tuning methods
    Evaluation BigCloneBench Dataset for clone detection; We use 2,000 samples for evaluation
    Devign Dataset for defect detection; We use 2,000 samples for evaluation
    HumanEvalPack Extension of OpenAI's HumanEval to cover 3 scenarios across 6 languages
    ReCode Dataset for the robustness of code generation, covering 4 variants
    Asleep At The Keyboard Datasets for security of code generation; We use DoW for evaluation

Use

Intended use

The model follows instructions provided in the input. You should always preface your input with "Question: " and finish it with "Answer:", for example: "Question: Please write a function in Python that performs bubble sort.

Answer:"

Feel free to share your generations in the Community tab!

Generation
# pip install -q transformers
# pip install -e git+https://github.com/bigcode-project/astraios#subdirectory=peft
from peft import PeftModel 
from transformers import AutoModelForCausalLM, AutoTokenizer

peft_checkpoint = "bigcode/astraios-ptuning"
checkpoint = "bigcode/starcoderbase"
model = AutoModelForCausalLM.from_pretrained(checkpoint)
model = PeftModel.from_pretrained(model, peft_checkpoint)
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("Question: Please write a function in Python that performs bubble sort.

Answer:", 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
  • Steps: 250k pretraining & 200 instruction tuning
  • Precision: fp32
Hardware
  • Pretraining:
    • GPUs: 512 Tesla A100
    • Training time: 24 days
  • Instruction tuning:
    • GPUs: 8 Tesla A100
Software

Citation


Runs of bigcode astraios-ptuning on huggingface.co

5
Total runs
0
24-hour runs
1
3-day runs
-1
7-day runs
2
30-day runs

More Information About astraios-ptuning huggingface.co Model

More astraios-ptuning license Visit here:

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

astraios-ptuning huggingface.co

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

astraios-ptuning huggingface.co Url

https://huggingface.co/bigcode/astraios-ptuning

bigcode astraios-ptuning online free

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

bigcode astraios-ptuning online free url in huggingface.co:

https://huggingface.co/bigcode/astraios-ptuning

astraios-ptuning install

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

astraios-ptuning install url in huggingface.co:

https://huggingface.co/bigcode/astraios-ptuning

Url of astraios-ptuning

astraios-ptuning huggingface.co Url

Provider of astraios-ptuning huggingface.co

bigcode
ORGANIZATIONS

Other API from bigcode

huggingface.co

Total runs: 165.5K
Run Growth: -14.7K
Growth Rate: -8.88%
Updated:March 04 2024
huggingface.co

Total runs: 12.0K
Run Growth: -9.7K
Growth Rate: -80.68%
Updated:October 09 2024
huggingface.co

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

Total runs: 3.7K
Run Growth: 1.7K
Growth Rate: 47.41%
Updated:May 10 2023
huggingface.co

Total runs: 421
Run Growth: -623
Growth Rate: -147.98%
Updated:July 24 2023
huggingface.co

Total runs: 273
Run Growth: 102
Growth Rate: 37.36%
Updated:August 18 2023
huggingface.co

Total runs: 185
Run Growth: -29
Growth Rate: -15.68%
Updated:August 05 2023
huggingface.co

Total runs: 174
Run Growth: 67
Growth Rate: 38.51%
Updated:August 05 2023
huggingface.co

Total runs: 173
Run Growth: 5
Growth Rate: 2.89%
Updated:August 18 2023
huggingface.co

Total runs: 10
Run Growth: 5
Growth Rate: 50.00%
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