bigcode / astraios-1b-parallel

huggingface.co
Total runs: 14
24-hour runs: 0
7-day runs: -1
30-day runs: -10
Model's Last Updated: 1月 02 2024

Introduction of astraios-1b-parallel

Model Details of astraios-1b-parallel

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-1B-Parallel Adapter 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-1b-parallel"
checkpoint = "bigcode/starcoderbase-1b"
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-1b-parallel on huggingface.co

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

More Information About astraios-1b-parallel huggingface.co Model

More astraios-1b-parallel license Visit here:

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

astraios-1b-parallel huggingface.co

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

astraios-1b-parallel huggingface.co Url

https://huggingface.co/bigcode/astraios-1b-parallel

bigcode astraios-1b-parallel online free

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

bigcode astraios-1b-parallel online free url in huggingface.co:

https://huggingface.co/bigcode/astraios-1b-parallel

astraios-1b-parallel install

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

astraios-1b-parallel install url in huggingface.co:

https://huggingface.co/bigcode/astraios-1b-parallel

Url of astraios-1b-parallel

astraios-1b-parallel huggingface.co Url

Provider of astraios-1b-parallel huggingface.co

bigcode
ORGANIZATIONS

Other API from bigcode

huggingface.co

Total runs: 29.4K
Run Growth: -25.0K
Growth Rate: -85.18%
Updated:3月 04 2024
huggingface.co

Total runs: 5.8K
Run Growth: -2.2K
Growth Rate: -37.45%
Updated:10月 13 2023
huggingface.co

Total runs: 1.8K
Run Growth: -14.5K
Growth Rate: -811.63%
Updated:10月 09 2024
huggingface.co

Total runs: 522
Run Growth: -130
Growth Rate: -24.90%
Updated:8月 18 2023
huggingface.co

Total runs: 287
Run Growth: 73
Growth Rate: 25.44%
Updated:8月 18 2023
huggingface.co

Total runs: 280
Run Growth: 40
Growth Rate: 14.29%
Updated:8月 05 2023
huggingface.co

Total runs: 224
Run Growth: -154
Growth Rate: -68.75%
Updated:5月 10 2023
huggingface.co

Total runs: 112
Run Growth: -9.9K
Growth Rate: -8813.39%
Updated:7月 24 2023
huggingface.co

Total runs: 71
Run Growth: -4.1K
Growth Rate: -5719.72%
Updated:5月 11 2023
huggingface.co

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

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