Downloads · 30 days
393
4% of all-time downloads
RichardErkhov/MadMarx37_-_deepseek-coder-1.3b-python-peft-gguf
MadMarx37_-_deepseek-coder-1.3b-python-peft-gguf 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
393
4% of all-time downloads
All-time downloads
9.9K
Public
Repo size
15.9 GB
Likes
0
Public
Click a slice to open those files.
.gguf18.5 GB · 100%
From the Hugging Face model README
Quantization made by Richard Erkhov.
deepseek-coder-1.3b-python-peft - GGUF
library_name: transformers tags:
A parameter-efficient finetune (using LoRA) of DeepSeek Coder 1.3B finetuned on Python code.
A finetune of DeepSeek Coder 1.3B finetuned on 1000 examples of Python code from the ArtifactAI/arxiv_python_research_code dataset.
To generate Python code
Use the code below to get started with the model.
from transformers import pipeline
model_name = "MadMarx37/deepseek-coder-1.3b-python-peft"
def generate_output(input):
# Run text generation pipeline with our next model
pipe = pipeline(task="text-generation", model=model_name, tokenizer=model_name, max_length=max_length)
result = pipe(input)
print(result[0]['generated_text'])
1.3B parameters. Training time of ~2 hours on an RTX3080.
https://huggingface.co/datasets/ArtifactAI/arxiv_python_research_code
Standard training and eval loss from the HF SFTTrainer.
Training Loss: 0.074100 Validation Loss: 0.022271
The training had some unstability in the gradient norms, but the overall trend in both training and validation loss were downward, and validation loss has almost plateaud, which is ideally where we want our model. The code generation on the same prompts that we tested the original model on also seem better with the finetuned model. A good way to make the model better, if we wanted to increase the finetuning data, would be to also increase the epochs.
The training run metrics can be seen here: https://wandb.ai/kevinv3796/python-autocomplete-deepseek/reports/Supervised-Finetuning-run-for-DeepSeek-Coder-1-3B-on-Python-Code--Vmlldzo3NzQ4NjY0?accessToken=bo0rlzp0yj9vxf1xe3fybfv6rbgl97w5kkab478t8f5unbwltdczy63ba9o9kwjp