Downloads · 30 days
7
26% of all-time downloads
RichardErkhov/wyt2000_-_InverseCoder-DS-6.7B-8bits
wyt2000_-_InverseCoder-DS-6.7B-8bits is a machine learning model from RichardErkhov. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
7
26% of all-time downloads
All-time downloads
27
Public
Parameters
6.7B
7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7 GB · 100%
How the weights are stored.
I86.5B · 96%
From the Hugging Face model README
Quantization made by Richard Erkhov.
InverseCoder-DS-6.7B - bnb 8bits
license: other license_name: deepseek license_link: LICENSE datasets:
InverseCoder is a series of code LLMs instruction-tuned by generating data from itself through Inverse-Instruct.
Similar to Magicoder-S-DS-6.7B, use the code below to get started with the model. Make sure you installed the transformers library.
from transformers import pipeline
import torch
INVERSECODER_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 = INVERSECODER_PROMPT.format(instruction=instruction)
generator = pipeline(
model="wyt2000/InverseCoder-DS-6.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"])
Arxiv: https://arxiv.org/abs/2407.05700
Please cite the paper if you use the models or datasets from InverseCoder.
@misc{wu2024inversecoderunleashingpowerinstructiontuned,
title={InverseCoder: Unleashing the Power of Instruction-Tuned Code LLMs with Inverse-Instruct},
author={Yutong Wu and Di Huang and Wenxuan Shi and Wei Wang and Lingzhe Gao and Shihao Liu and Ziyuan Nan and Kaizhao Yuan and Rui Zhang and Xishan Zhang and Zidong Du and Qi Guo and Yewen Pu and Dawei Yin and Xing Hu and Yunji Chen},
year={2024},
eprint={2407.05700},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2407.05700},
}
Official code repo for Inverse-Instruct (under development).