Deci / DeciCoder-1b

huggingface.co
Total runs: 454
24-hour runs: 17
7-day runs: 50
30-day runs: 250
Model's Last Updated: February 15 2024
text-generation

Introduction of DeciCoder-1b

Model Details of DeciCoder-1b

Model Card for DeciCoder 1B

DeciCoder 1B is a 1 billion parameter decoder-only code completion model trained on the Python, Java, and Javascript subsets of Starcoder Training Dataset . The model uses Grouped Query Attention and has a context window of 2048 tokens. It was trained using a Fill-in-the-Middle training objective. The model's architecture was generated by Deci's proprietary Neural Architecture Search-based technology, AutoNAC.

Model Details
  • Developed by: Deci
  • Model type: DeciCoder is an auto-regressive language model based on the transformer decoder architecture, using Grouped Query Attention.
  • Language(s): Python, Java, JavaScript
  • License: Model checkpoints are licensed under the Apache 2.0
Model Architecture
Parameters Layers Heads Sequence Length GQA num_key_value_heads Hidden Size
1.1B 20 32 2048 4 2048
Uses

The model is intended to do single/multiline code completion from a context window of up to 2048k tokens. It is not an instruction model and commands like "Write a function that computes the absolute value of an integer," won't yield the desired results. A more effective approach is to frame instructions in the style of source code comments (e.g. # this function calculates the absolute value of an integer) or to present a function signature and docstring, enabling the model to complete the function's body.

How to Use
# pip install -q transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

checkpoint = "Deci/DeciCoder-1b"
device = "cuda" # for GPU usage or "cpu" for CPU usage

tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint, torch_dtype=torch.bfloat16, trust_remote_code=True).to(device)

inputs = tokenizer.encode("def print_hello_world():", return_tensors="pt").to(device)
outputs = model.generate(inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0]))
Attribution

DeciCoder was trained on StarCoder Training Dataset, filtered for Python, Java, and Javascript code. For additional information, please refer to https://huggingface.co/datasets/bigcode/starcoderdata .

Limitations

The model has undergone training with source code from Python, Java, and JavaScript. While the primary language in the source is English, it does contain other languages. Therefore, the model can produce code snippets given some context. However, there's no assurance that the resulting code will function as expected. It might be suboptimal, contain bugs, or even exploits.

Training Details
Training Data

DeciCoder was trained on the Python, Java, and Javascript subsets of Starcoder Training Dataset

Training Procedure
  • Warm-Up Steps : 9000
  • Total Training Steps : 284k
  • Total Tokens : 446B
  • Global Batch Size : 768
  • Optimizer : AdamW
  • Optimizer Parameters : beta1=0.9, beta2=0.95
  • Weight Decay : 0.1
  • Learning Rate : 4e-4
  • Learning Rate Schedule : cosine
Evaluation

Below are DeciCoder's pass@1 on MultiPL HumanEval scores

Python JavaScript Java
19.1% 18.4% 16.6%
Runtime Benchmarks
Inference Tool/Hardware A10 (tokens/sec) A100 (tokens/sec)
PyTorch 1,364.2 3,244.4
Infery LLM 3,889.3 11,676.8
  • Throughput (tokens/sec) - Measured with optimal batch size per hardware - A10 on BS 128, A100 on BS 512
  • Infery-LLM, Deci's optimization and inference SDK's features a suite of optimization techniques, including selective quantization, optimized beam search, continuous batching, and custom CUDA kernels. To explore the full capabilities of Infery-LLM, we invite you to book a demo with our experts.
Documentation
How to Cite

Please cite this model using this format.

@misc{DeciFoundationModels,
title = {DeciCoder},
author = {DeciAI Research Team},
year = {2023}
url={[https://huggingface.co/deci/decicoder-1b](https://huggingface.co/deci/decicoder-1b)},
}

Runs of Deci DeciCoder-1b on huggingface.co

454
Total runs
17
24-hour runs
27
3-day runs
50
7-day runs
250
30-day runs

More Information About DeciCoder-1b huggingface.co Model

More DeciCoder-1b license Visit here:

https://choosealicense.com/licenses/apache-2.0

DeciCoder-1b huggingface.co

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

DeciCoder-1b huggingface.co Url

https://huggingface.co/Deci/DeciCoder-1b

Deci DeciCoder-1b online free

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

Deci DeciCoder-1b online free url in huggingface.co:

https://huggingface.co/Deci/DeciCoder-1b

DeciCoder-1b install

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

DeciCoder-1b install url in huggingface.co:

https://huggingface.co/Deci/DeciCoder-1b

Url of DeciCoder-1b

DeciCoder-1b huggingface.co Url

Provider of DeciCoder-1b huggingface.co

Deci
ORGANIZATIONS

Other API from Deci

huggingface.co

Total runs: 1.5K
Run Growth: 1.1K
Growth Rate: 74.42%
Updated:February 22 2024
huggingface.co

Total runs: 517
Run Growth: 428
Growth Rate: 82.79%
Updated:July 29 2024
huggingface.co

Total runs: 137
Run Growth: 73
Growth Rate: 53.28%
Updated:February 11 2024