Downloads · 30 days
28
8% of all-time downloads
richterdc/deepseek-coder-finetuned-tdd
deepseek-coder-finetuned-tdd is a text generation model from richterdc. Use it when you need the model to write or continue text. It is set up for transformers.
This model is fine-tuned to help developers generate test cases from code or plain language descriptions. It is designed to support Test-Driven Development (TDD) by suggesting tests that can improve code quality.
Downloads · 30 days
28
8% of all-time downloads
All-time downloads
360
Public
Parameters
1.3B
5.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.4 GB · 100%
From the Hugging Face model README
This model is fine-tuned to help developers generate test cases from code or plain language descriptions. It is designed to support Test-Driven Development (TDD) by suggesting tests that can improve code quality.
This model has been fine-tuned to generate test cases for software code. It takes in code snippets or descriptions of functionality and suggests relevant tests. The model uses the Hugging Face Transformers library and is deployed as a Flask API. It is built for fast inference with GPU support and is intended to help developers by automating part of the TDD process.
The model can be used to generate test cases directly from code snippets or textual descriptions. This is useful for developers who want to quickly get ideas for tests to cover their code.
The model can also be integrated into larger development pipelines or fine-tuned further for specific applications. For example, it can be used within continuous integration systems to suggest tests for new code changes.
This model is not designed for generating security-critical tests or for replacing thorough human testing. It may not capture all edge cases and should not be solely relied upon for complete test coverage.
Users should always review the generated test cases before using them in production. Fine-tuning on domain-specific data is recommended to improve relevance and accuracy.
Clone the Repository:
git clone https://github.com/RichterDelaCruz/tdd-deployment.git
cd tdd-deployment
Install Dependencies:
pip install -r requirements.txt
Run the Flask API:
python generate-test.py
Test the API:
Use curl or any API testing tool:
curl -X POST "http://localhost:8000/generate" \
-H "Content-Type: application/json" \
-d '{"input_text": "Write a Python function to add two numbers"}'
The exact details of the training data are not provided. It likely consists of publicly available code repositories and associated test cases.
The model was fine-tuned using standard practices for causal language models on a dataset of code and test cases.
Preprocessing steps were applied to prepare the code and test case data, though specific details are not provided.
The model is optimized for GPU inference and has been tested on hardware such as the RTX 3090 for scalability.
Details about the testing dataset are not provided. Evaluation likely used code examples and corresponding expected test cases.
Evaluations may consider code complexity, coverage, and the correctness of the generated tests.
Metrics might include improvements in test coverage or the accuracy of the suggested test cases, though specific metrics are not documented.
Evaluation results are not comprehensively documented. Users are encouraged to evaluate the model based on their own codebases.
The model is effective at generating plausible test cases for a variety of code snippets, though manual review is recommended to ensure correctness and completeness.
No detailed interpretability or analysis work has been provided for this model.
Carbon emissions for model training and inference can be estimated using the Machine Learning Impact calculator.
This model is based on a causal language model architecture, fine-tuned specifically for code generation and test case creation. Its objective is to assist developers in following Test-Driven Development practices.
The model is deployed as a Flask API using gunicorn for scalability, with PyTorch handling model inference.
The model runs on both CPU and GPU, with best performance observed on GPUs.
Built using Python, Flask, PyTorch, and Hugging Face Transformers.
BibTeX:
@misc{richterdc2025tdd,
author = {Richter Dela Cruz},
title = {richterdc/deepseek-coder-finetuned-tdd},
year = {2025},
publisher = {GitHub},
howpublished = {\url{https://github.com/RichterDelaCruz/tdd-deployment}}
}
APA:
Richter Dela Cruz. (2025). richterdc/deepseek-coder-finetuned-tdd. GitHub. Retrieved from https://github.com/RichterDelaCruz/tdd-deployment
For further details, visit the repository.
Angelo Richter L. Dela Cruz, Alyza Reynado, Gabriel Luis Bacosa, and Joseph Bryan Eusebio
For inquiries or contributions, please reach out via GitHub.