jinaai / starcoder-1b-textbook

huggingface.co
Total runs: 52
24-hour runs: 0
7-day runs: 14
30-day runs: 28
Model's Last Updated: 9月 07 2023
text-generation

Introduction of starcoder-1b-textbook

Model Details of starcoder-1b-textbook

StarCoder-1b-textbook

StarCoder-1b-textbook is a finetuned version of starcoderbase-1b on the code_exercices dataset

It achieves 27.0 pass@1 on the Human Eval coding benchmark while being only 1b parameters. That is an improvement of almost 12 points over the starcoder 1b baseline, almost doubling the score.

The results (on the human eval benchmark) are on par with other open-source models like StarCoderBase (30.4) StarCoder(33.6) CodeGen-16B-Mono(29.3) while the model being 15 times smaller.

It still underperforms compared to other models like CodeLLama (53%) chat gpt 4 (82) or wizard coder (73.2), but these model are more than 30 times bigger.

Usage

You can download and use the model like so:

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained(
        "jinaai/starcoder-1b-textbook", device_map='auto'
    )

tokenizer = AutoTokenizer.from_pretrained("jinaai/starcoder-1b-textbook")

prompt = '''
def unique(l: list):
    """Return sorted unique elements in a list
    >>> unique([5, 3, 5, 2, 3, 3, 9, 0, 123])
    [0, 2, 3, 5, 9, 123]
    """
'''

inputs = tokenizer(prompt.rstrip(), return_tensors="pt").to("cuda")

generation_output = model.generate(
    **inputs,
    max_new_tokens=128,
    eos_token_id=tokenizer.eos_token_id,
    return_dict_in_generate=True,
)

s = generation_output.sequences[0]
output = tokenizer.decode(s, skip_special_tokens=True)

print(output)
Finetuning details

We did full parameter fine-tuning and used a Nvidia a40 for 12 hours using a batch size of 128 and a micro-batch size of 8.

To reproduce the training just follow the training instructions in our open source codebase

Disclaimer
  • The human eval benchmark is not a perfect benchmark and does not fully represent the coding abilities of an LLM. This model performs well on the task described in the benchmark but it does not necessarily mean that our model is on par with bigger models on coding assistant LLM.
  • This model is not an instruction tuned model and cannot be used as a chatbot. We recommend using the Evol-Instruct-Code-80k-v1 to finetune it into a instrution following model
  • This model has not been aligned with human preferences and therefore could potentially generate harmful content
  • This model has been trained on a dataset generated by ChatGPT 3.5, and you should check the legal status of AI-generated content in your jurisdiction before using it. You should make sure that your usage complies with the OpenAI Terms of Use, in so far as legally applicable.
Credits

This model was trained and released by Jina.ai

Runs of jinaai starcoder-1b-textbook on huggingface.co

52
Total runs
0
24-hour runs
10
3-day runs
14
7-day runs
28
30-day runs

More Information About starcoder-1b-textbook huggingface.co Model

More starcoder-1b-textbook license Visit here:

https://choosealicense.com/licenses/cc-by-nc-sa-4.0

starcoder-1b-textbook huggingface.co

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

starcoder-1b-textbook huggingface.co Url

https://huggingface.co/jinaai/starcoder-1b-textbook

jinaai starcoder-1b-textbook online free

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

jinaai starcoder-1b-textbook online free url in huggingface.co:

https://huggingface.co/jinaai/starcoder-1b-textbook

starcoder-1b-textbook install

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

starcoder-1b-textbook install url in huggingface.co:

https://huggingface.co/jinaai/starcoder-1b-textbook

Url of starcoder-1b-textbook

starcoder-1b-textbook huggingface.co Url

Provider of starcoder-1b-textbook huggingface.co

jinaai
ORGANIZATIONS

Other API from jinaai

huggingface.co

Total runs: 98.4K
Run Growth: -10.3K
Growth Rate: -10.45%
Updated:4月 08 2026
huggingface.co

Total runs: 80.9K
Run Growth: -29.0K
Growth Rate: -35.91%
Updated:4月 08 2026
huggingface.co

Total runs: 72.8K
Run Growth: -151.6K
Growth Rate: -208.22%
Updated:8月 20 2026
huggingface.co

Total runs: 3.1K
Run Growth: 1.7K
Growth Rate: 54.06%
Updated:9月 18 2026
huggingface.co

Total runs: 1.5K
Run Growth: 378
Growth Rate: 25.82%
Updated:3月 04 2025
huggingface.co

Total runs: 1.3K
Run Growth: 785
Growth Rate: 61.81%
Updated:4月 03 2026
huggingface.co

Total runs: 271
Run Growth: 16
Growth Rate: 5.90%
Updated:12月 17 2025