Run this model with HF Jobs

Run seamoke111/HTL-CodeLlama-7B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/seamoke111/HTL-CodeLlama-7B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/seamoke111/HTL-CodeLlama-7B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/seamoke111/HTL-CodeLlama-7B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/seamoke111/HTL-CodeLlama-7B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

How Do Humans Write Code? Large Models Do It the Same Way Too

Paper: https://arxiv.org/pdf/2402.15729

Code: https://github.com/seamoke/Human-Think-Language

Introduction

For this model, please sure your transformers>=4.39.2.

We introduce HTL, a model which utilizes the complete reasoning process of CoT to enhance PoT. This model was secondarily fine-tuned based on MAmmoTH-Coder-7B

Evaluation

The models are evaluated using open-ended and multiple-choice math problems from several datasets. Here are the results:

Model GSM GSM-Hard NumGLUE MATH Sim SVAMP MAWPS ASDiV
MAmmoTH-Coder-7B 59.4 56.3 66.4 33.4 45.9 70.7 91.9 69.3
TORA 72.6 56.0 46.2 44.6 48.5 70.4 91.3 78.7
MAmmoTH-Coder-7B 65.7 58.3 75.1 34.9 50.8 74.4 94.2 73.1

Prompt Format

If you want to do HTL:

Below is an instruction that describes a task. Write a response that appropriately completes the request.
I'd like you to solve this problem in 3 steps:
1.Answer the question in plain language without writing any code.\n
2.Output one line of *\n.
3.Write program code based on the solution process in step 1 to solve the problem.\n
### Instruction:
{query}
Let's write a program.
### Response:"

Citation

If you use the models, data, or code from this project, please cite the original paper:

@article{li2024humans,
  title={How Do Humans Write Code? Large Models Do It the Same Way Too},
  author={Li, Long},
  journal={arXiv preprint arXiv:2402.15729},
  year={2024}
}
Downloads last month
25
Safetensors
Model size
7B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train seamoke111/HTL-CodeLlama-7B

Paper for seamoke111/HTL-CodeLlama-7B