Downloads ยท 30 days
17
28% of all-time downloads
RichardErkhov/ise-uiuc_-_Magicoder-S-CL-7B-4bits
ise-uiuc_-_Magicoder-S-CL-7B-4bits is a text generation model from RichardErkhov. Use it when you need the model to write or continue text. It is set up for transformers.
Downloads ยท 30 days
17
28% of all-time downloads
All-time downloads
61
Public
Parameters
6.8B
4.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors4.2 GB ยท 100%
How the weights are stored.
U86.5B ยท 95%
From the Hugging Face model README
Quantization made by Richard Erkhov.
Magicoder-S-CL-7B - bnb 4bits
license: llama2 datasets:
Refer to our GitHub repo ise-uiuc/magicoder for an up-to-date introduction to the Magicoder family!

gpt-3.5-turbo-1106 and used to train both Magicoder and Magicoder-S series.Magicoders are designed and best suited for coding tasks.
Magicoders may not work well in non-coding tasks.
Magicoders may sometimes make errors, producing misleading contents, or struggle to manage tasks that are not related to coding.
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.
Use the code below to get started with the model. Make sure you installed the transformers library.
from transformers import pipeline
import torch
MAGICODER_PROMPT = """You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions.
@@ Instruction
{instruction}
@@ Response
"""
instruction = <Your code instruction here>
prompt = MAGICODER_PROMPT.format(instruction=instruction)
generator = pipeline(
model="ise-uiuc/Magicoder-S-CL-7B",
task="text-generation",
torch_dtype=torch.bfloat16,
device_map="auto",
)
result = generator(prompt, max_length=1024, num_return_sequences=1, temperature=0.0)
print(result[0]["generated_text"])
Refer to our GitHub repo: ise-uiuc/magicoder.
@misc{magicoder,
title={Magicoder: Source Code Is All You Need},
author={Yuxiang Wei and Zhe Wang and Jiawei Liu and Yifeng Ding and Lingming Zhang},
year={2023},
eprint={2312.02120},
archivePrefix={arXiv},
primaryClass={cs.CL}
}
Magicoder models are trained on the synthetic data generated by OpenAI models. Please pay attention to OpenAI's terms of use when using the models and the datasets. Magicoders will not compete with OpenAI's commercial products.