nisten / glaive-coder-7b-q4f16_2-mlc

huggingface.co
Total runs: 22
24-hour runs: 0
7-day runs: -2
30-day runs: 9
Model's Last Updated: September 24 2023
text-generation

Introduction of glaive-coder-7b-q4f16_2-mlc

Model Details of glaive-coder-7b-q4f16_2-mlc

Glaive-coder-7b

Glaive-coder-7b is a 7B parameter code model trained on a dataset of ~140k programming related problems and solutions generated from Glaive’s synthetic data generation platform.

The model is fine-tuned on the CodeLlama-7b model.

Usage:

The model is trained to act as a code assistant, and can do both single instruction following and multi-turn conversations. It follows the same prompt format as CodeLlama-7b-Instruct-

<s>[INST]
<<SYS>>
{{ system_prompt }}
<</SYS>>

{{ user_msg }} [/INST] {{ model_answer }} </s>
<s>[INST] {{ user_msg }} [/INST]

You can run the model in the following way-

from transformers import AutoModelForCausalLM , AutoTokenizer

tokenizer = AutoTokenizer.from_pretrained("glaiveai/glaive-coder-7b")
model = AutoModelForCausalLM.from_pretrained("glaiveai/glaive-coder-7b").half().cuda()

def fmt_prompt(prompt):
    return f"<s> [INST] {prompt} [/INST]"

inputs = tokenizer(fmt_prompt(prompt),return_tensors="pt").to(model.device)

outputs = model.generate(**inputs,do_sample=True,temperature=0.1,top_p=0.95,max_new_tokens=100)

print(tokenizer.decode(outputs[0],skip_special_tokens=True,clean_up_tokenization_spaces=False))
Benchmarks:

The model achieves a 63.1% pass@1 on HumanEval and a 45.2% pass@1 on MBPP, however it is evident that these benchmarks are not representative of real-world usage of code models so we are launching the Code Models Arena to let users vote on model outputs so we can have a better understanding of user preference on code models and come up with new and better benchmarks. We plan to release the Arena results as soon as we have a sufficient amount of data.

Join the Glaive discord for improvement suggestions, bug-reports and collaborating on more open-source projects.

Runs of nisten glaive-coder-7b-q4f16_2-mlc on huggingface.co

22
Total runs
0
24-hour runs
1
3-day runs
-2
7-day runs
9
30-day runs

More Information About glaive-coder-7b-q4f16_2-mlc huggingface.co Model

More glaive-coder-7b-q4f16_2-mlc license Visit here:

https://choosealicense.com/licenses/llama2

glaive-coder-7b-q4f16_2-mlc huggingface.co

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

glaive-coder-7b-q4f16_2-mlc huggingface.co Url

https://huggingface.co/nisten/glaive-coder-7b-q4f16_2-mlc

nisten glaive-coder-7b-q4f16_2-mlc online free

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

nisten glaive-coder-7b-q4f16_2-mlc online free url in huggingface.co:

https://huggingface.co/nisten/glaive-coder-7b-q4f16_2-mlc

glaive-coder-7b-q4f16_2-mlc install

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

glaive-coder-7b-q4f16_2-mlc install url in huggingface.co:

https://huggingface.co/nisten/glaive-coder-7b-q4f16_2-mlc

Url of glaive-coder-7b-q4f16_2-mlc

glaive-coder-7b-q4f16_2-mlc huggingface.co Url

Provider of glaive-coder-7b-q4f16_2-mlc huggingface.co

nisten
ORGANIZATIONS

Other API from nisten

huggingface.co

Total runs: 117
Run Growth: -2
Growth Rate: -1.71%
Updated:März 06 2024
huggingface.co

Total runs: 68
Run Growth: 64
Growth Rate: 94.12%
Updated:Dezember 18 2024
huggingface.co

Total runs: 45
Run Growth: 45
Growth Rate: 100.00%
Updated:September 16 2025
huggingface.co

Total runs: 21
Run Growth: -1
Growth Rate: -4.76%
Updated:Dezember 23 2024
huggingface.co

Total runs: 6
Run Growth: 0
Growth Rate: 0.00%
Updated:Februar 07 2025
huggingface.co

Total runs: 5
Run Growth: 0
Growth Rate: 0.00%
Updated:Januar 07 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 18 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:August 20 2023
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:Juli 19 2023