mrm8488 / falcoder-7b

huggingface.co
Total runs: 60
24-hour runs: 0
7-day runs: 20
30-day runs: 46
Model's Last Updated: June 20 2023
text-generation

Introduction of falcoder-7b

Model Details of falcoder-7b

falcoder logo

FalCoder 🦅👩‍💻

Falcon-7b fine-tuned on the CodeAlpaca 20k instructions dataset by using the method QLoRA with PEFT library.

Model description 🧠

Falcon 7B

Training and evaluation data 📚

CodeAlpaca_20K : contains 20K instruction-following data used for fine-tuning the Code Alpaca model.

Training hyperparameters ⚙

TBA

Training results 🗒️
Step Training Loss Validation Loss
100 0.798500 0.767996
200 0.725900 0.749880
300 0.669100 0.748029
400 0.687300 0.742342
500 0.579900 0.736735
Example of usage 👩‍💻
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer, AutoTokenizer

model_id = "mrm8488/falcoder-7b"

tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(model_id).to("cuda")

def generate(
        instruction,
        max_new_tokens=128,
        temperature=0.1,
        top_p=0.75,
        top_k=40,
        num_beams=4,
        **kwargs
):
    prompt = instruction + "\n### Solution:\n"
    print(prompt)
    inputs = tokenizer(prompt, return_tensors="pt")
    input_ids = inputs["input_ids"].to("cuda")
    attention_mask = inputs["attention_mask"].to("cuda")
    generation_config = GenerationConfig(
        temperature=temperature,
        top_p=top_p,
        top_k=top_k,
        num_beams=num_beams,
        **kwargs,
    )
    with torch.no_grad():
        generation_output = model.generate(
            input_ids=input_ids,
            attention_mask=attention_mask,
            generation_config=generation_config,
            return_dict_in_generate=True,
            output_scores=True,
            max_new_tokens=max_new_tokens,
            early_stopping=True
        )
    s = generation_output.sequences[0]
    output = tokenizer.decode(s)
    return output.split("### Solution:")[1].lstrip("\n")

instruction = "Design a class for representing a person in Python."
print(generate(instruction))
Citation
@misc {manuel_romero_2023,
    author       = { {Manuel Romero} },
    title        = { falcoder-7b (Revision e061237) },
    year         = 2023,
    url          = { https://huggingface.co/mrm8488/falcoder-7b },
    doi          = { 10.57967/hf/0789 },
    publisher    = { Hugging Face }
}

Runs of mrm8488 falcoder-7b on huggingface.co

60
Total runs
0
24-hour runs
4
3-day runs
20
7-day runs
46
30-day runs

More Information About falcoder-7b huggingface.co Model

More falcoder-7b license Visit here:

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

falcoder-7b huggingface.co

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

falcoder-7b huggingface.co Url

https://huggingface.co/mrm8488/falcoder-7b

mrm8488 falcoder-7b online free

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

mrm8488 falcoder-7b online free url in huggingface.co:

https://huggingface.co/mrm8488/falcoder-7b

falcoder-7b install

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

falcoder-7b install url in huggingface.co:

https://huggingface.co/mrm8488/falcoder-7b

Url of falcoder-7b

falcoder-7b huggingface.co Url

Provider of falcoder-7b 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: 213
Run Growth: 64
Growth Rate: 31.68%
Updated:March 19 2023
huggingface.co

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