HuggingFaceH4 / starchat-alpha

huggingface.co
Total runs: 1.2K
24-hour runs: -5
7-day runs: 639
30-day runs: 750
Model's Last Updated: June 09 2023
text-generation

Introduction of starchat-alpha

Model Details of starchat-alpha

Model Card for StarChat Alpha

Note, you may be interested in the Beta version of StarChat here .

StarChat is a series of language models that are fine-tuned from StarCoder to act as helpful coding assistants. StarChat Alpha is the first of these models, and as an alpha release is only intended for educational or research purpopses. In particular, the model has not been aligned to human preferences with techniques like RLHF, so may generate problematic content (especially when prompted to do so).

Model Details
Model Description
Model Sources [optional]
Uses

StarChat Alpha is intended for educational and/or research purposes and in that respect can be used to probe the programming capabilities of open-source language models.

Bias, Risks, and Limitations

StarChat Alpha has not been aligned to human preferences with techniques like RLHF or deployed with in-the-loop filtering of responses like ChatGPT, so the model can produce problematic outputs (especially when prompted to do so). Models trained primarily on code data will also have a more skewed demographic bias commensurate with the demographics of the GitHub community, for more on this see the StarCoder dataset which is derived from The Stack.

Since the base model was pretrained on a large corpus of code, it may produce code snippets that are syntactically valid but semantically incorrect. For example, it may produce code that does not compile or that produces incorrect results.
It may also produce code that is vulnerable to security exploits.
We have observed the model also has a tendency to produce false URLs which should be carefully inspected before clicking.

StarChat Alpha was fine-tuned from the base model StarCoder Base , please refer to its model card's Limitations Section for relevant information. In particular, the model was evaluated on some categories of gender biases, propensity for toxicity, and risk of suggesting code completions with known security flaws; these evaluations are reported in its technical report .

How to Get Started with the Model

Use the code below to get started with the model.

Here's how you can run the model using the pipeline() function from 🤗 Transformers:

import torch
from transformers import pipeline

pipe = pipeline("text-generation", model="HuggingFaceH4/starchat-alpha", torch_dtype=torch.bfloat16, device_map="auto")

prompt_template = "<|system|>\n<|end|>\n<|user|>\n{query}<|end|>\n<|assistant|>"
prompt = prompt_template.format(query="How do I sort a list in Python?")
# We use a special <|end|> token with ID 49155 to denote ends of a turn
outputs = pipe(prompt, max_new_tokens=256, do_sample=True, temperature=0.2, top_k=50, top_p=0.95, eos_token_id=49155)
# You can sort a list in Python by using the sort() method. Here's an example:\n\n```\nnumbers = [3, 1, 4, 1, 5, 9, 2, 6, 5, 3, 5]\nnumbers.sort()\nprint(numbers)\n```\n\nThis will sort the list in place and print the sorted list.
Citation

BibTeX:

@article{Tunstall2023starchat-alpha,
  author = {Tunstall, Lewis and Lambert, Nathan and Rajani, Nazneen and Beeching, Edward and Le Scao, Teven and von Werra, Leandro and Han, Sheon and Schmid, Philipp and Rush, Alexander},
  title = {Creating a Coding Assistant with StarCoder},
  journal = {Hugging Face Blog},
  year = {2023},
  note = {https://huggingface.co/blog/starchat},
}

Runs of HuggingFaceH4 starchat-alpha on huggingface.co

1.2K
Total runs
-5
24-hour runs
27
3-day runs
639
7-day runs
750
30-day runs

More Information About starchat-alpha huggingface.co Model

More starchat-alpha license Visit here:

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

starchat-alpha huggingface.co

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

HuggingFaceH4 starchat-alpha online free

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

HuggingFaceH4 starchat-alpha online free url in huggingface.co:

https://huggingface.co/HuggingFaceH4/starchat-alpha

starchat-alpha install

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

starchat-alpha install url in huggingface.co:

https://huggingface.co/HuggingFaceH4/starchat-alpha

Url of starchat-alpha

Provider of starchat-alpha huggingface.co

HuggingFaceH4
ORGANIZATIONS

Other API from HuggingFaceH4