abacaj / starcoderbase-1b-sft

huggingface.co
Total runs: 39
24-hour runs: 1
7-day runs: -2
30-day runs: 13
Model's Last Updated: September 10 2023
text-generation

Introduction of starcoderbase-1b-sft

Model Details of starcoderbase-1b-sft

Dataset credits go to: theblackcat102

How to run inference:

import transformers
import torch


def fmt_prompt(prompt: str) -> str:
    return f"""[Instructions]:\n{prompt}\n\n[Response]:"""


if __name__ == "__main__":
    model_name = "abacaj/starcoderbase-1b-sft"
    tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)

    model = (
        transformers.AutoModelForCausalLM.from_pretrained(
            model_name,
        )
        .to("cuda:0")
        .eval()
    )

    prompt = "Write a python function to sort the following array in ascending order, don't use any built in sorting methods: [9,2,8,1,5]"
    prompt_input = fmt_prompt(prompt)
    inputs = tokenizer(prompt_input, return_tensors="pt").to(model.device)
    input_ids_cutoff = inputs.input_ids.size(dim=1)

    with torch.no_grad():
        generated_ids = model.generate(
            **inputs,
            use_cache=True,
            max_new_tokens=512,
            temperature=0.2,
            top_p=0.95,
            do_sample=True,
            eos_token_id=tokenizer.eos_token_id,
            pad_token_id=tokenizer.pad_token_id,
        )

    completion = tokenizer.decode(
        generated_ids[0][input_ids_cutoff:],
        skip_special_tokens=True,
    )

    print(completion)

Evals: image/png

Training charts: image/png

Link to charts: https://api.wandb.ai/links/abacaj1/c4nkcs9r

Code to train model: https://github.com/abacaj/train-with-fsdp

Runs of abacaj starcoderbase-1b-sft on huggingface.co

39
Total runs
1
24-hour runs
-1
3-day runs
-2
7-day runs
13
30-day runs

More Information About starcoderbase-1b-sft huggingface.co Model

starcoderbase-1b-sft huggingface.co

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

starcoderbase-1b-sft huggingface.co Url

https://huggingface.co/abacaj/starcoderbase-1b-sft

abacaj starcoderbase-1b-sft online free

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

abacaj starcoderbase-1b-sft online free url in huggingface.co:

https://huggingface.co/abacaj/starcoderbase-1b-sft

starcoderbase-1b-sft install

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

starcoderbase-1b-sft install url in huggingface.co:

https://huggingface.co/abacaj/starcoderbase-1b-sft

Url of starcoderbase-1b-sft

starcoderbase-1b-sft huggingface.co Url

Provider of starcoderbase-1b-sft huggingface.co

abacaj
ORGANIZATIONS

Other API from abacaj

huggingface.co

Total runs: 232
Run Growth: 92
Growth Rate: 39.66%
Updated:March 02 2024