mrm8488 / bloom-560m-finetuned-the-stack-rust

huggingface.co
Total runs: 164
24-hour runs: 6
7-day runs: -21
30-day runs: -81
Model's Last Updated: December 31 2022
text-generation

Introduction of bloom-560m-finetuned-the-stack-rust

Model Details of bloom-560m-finetuned-the-stack-rust

BLOOM (560M ckpt) fine-tuned on The Stack RUST code

Model 🧠

BigScience Large Open-science Open-access Multilingual Language Model 🌸

BLOOM is an autoregressive Large Language Model (LLM), trained to continue text from a prompt on vast amounts of text data using industrial-scale computational resources. As such, it is able to output coherent text in 46 languages and 13 programming languages that is hardly distinguishable from text written by humans. BLOOM can also be instructed to perform text tasks it hasn't been explicitly trained for, by casting them as text generation tasks.

Dataset 📚

Rust 🦀 part of The Stack .

The Stack contains over 6TB of permissively-licensed source code files covering 358 programming languages. The dataset was created as part of the BigCode Project, an open scientific collaboration working on the responsible development of Large Language Models for Code (Code LLMs). The Stack serves as a pre-training dataset for Code LLMs, i.e., code-generating AI systems which enable the synthesis of programs from natural language descriptions as well as other from code snippets.

Example of usage 👩‍💻
import torch
from transformers import BloomTokenizerFast, BloomForCausalLM

device = 'cuda' if torch.cuda.is_available() else 'cpu'
ckpt = 'mrm8488/bloom-560m-finetuned-the-stack-rust'
revision = '100k' # latest one at the moment 

tokenizer = BloomTokenizerFast.from_pretrained(ckpt)
model = BloomForCausalLM.from_pretrained(ckpt, revision=revision).to(device)

def complete_code(text):
    inputs = tokenizer(text, return_tensors='pt')
    input_ids = inputs.input_ids.to(device)
    attention_mask = inputs.attention_mask.to(device)
    output = model.generate(input_ids, attention_mask=attention_mask, max_length=2048, eos_token_id=tokenizer.eos_token_id)

    return tokenizer.decode(output[0], skip_special_tokens=False)
    
code_prompt = """
use fastly::{Error, Request, Response};
use serde_json::{json, Value};

#[fastly::main]
fn main(req: Request) -> Result<Response, Error> {
  let mut response = req.send("origin_0")?;
"""

complete_code(code_prompt)
Citation ✒️
@misc {manuel_romero_2022,
    author       = { {Manuel Romero} },
    title        = { bloom-560m-finetuned-the-stack-rust (Revision 5358462) },
    year         = 2022,
    url          = { https://huggingface.co/mrm8488/bloom-560m-finetuned-the-stack-rust },
    doi          = { 10.57967/hf/0236 },
    publisher    = { Hugging Face }
}

Runs of mrm8488 bloom-560m-finetuned-the-stack-rust on huggingface.co

164
Total runs
6
24-hour runs
10
3-day runs
-21
7-day runs
-81
30-day runs

More Information About bloom-560m-finetuned-the-stack-rust huggingface.co Model

bloom-560m-finetuned-the-stack-rust huggingface.co

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

bloom-560m-finetuned-the-stack-rust huggingface.co Url

https://huggingface.co/mrm8488/bloom-560m-finetuned-the-stack-rust

mrm8488 bloom-560m-finetuned-the-stack-rust online free

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

mrm8488 bloom-560m-finetuned-the-stack-rust online free url in huggingface.co:

https://huggingface.co/mrm8488/bloom-560m-finetuned-the-stack-rust

bloom-560m-finetuned-the-stack-rust install

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

bloom-560m-finetuned-the-stack-rust install url in huggingface.co:

https://huggingface.co/mrm8488/bloom-560m-finetuned-the-stack-rust

Url of bloom-560m-finetuned-the-stack-rust

bloom-560m-finetuned-the-stack-rust huggingface.co Url

Provider of bloom-560m-finetuned-the-stack-rust huggingface.co

mrm8488
ORGANIZATIONS

Other API from mrm8488

huggingface.co

Total runs: 855
Run Growth: 264
Growth Rate: 30.88%
Updated:February 23 2024
huggingface.co

Total runs: 201
Run Growth: 57
Growth Rate: 28.36%
Updated:March 19 2023
huggingface.co

Total runs: 72
Run Growth: 32
Growth Rate: 44.44%
Updated:January 24 2024
huggingface.co

Total runs: 52
Run Growth: 40
Growth Rate: 76.92%
Updated:June 20 2023