nihardon commited on
Commit
a15a834
·
verified ·
1 Parent(s): 22c32cc

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md CHANGED
@@ -10,5 +10,28 @@ pinned: false
10
  license: openrail
11
  short_description: Fine-tuned Llama-3 for generating Python unit tests
12
  ---
 
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
10
  license: openrail
11
  short_description: Fine-tuned Llama-3 for generating Python unit tests
12
  ---
13
+ # 🧪 AI Unit Test Generator (Fine-Tuned Llama-3)
14
 
15
+ This application uses a fine-tuned version of **Meta's Llama-3-8B** to automatically generate `pytest` unit tests for Python functions. It is designed to help developers speed up Test-Driven Development (TDD) by automating the boilerplate code for testing.
16
+
17
+ ## 🚀 How to Use
18
+ 1. **Paste your Python function** into the input box (e.g., a function that adds two numbers or handles a database connection).
19
+ 2. Click **"Generate Pytest"**.
20
+ 3. The model will output a complete, runnable `pytest` code block, including edge cases and assertions.
21
+
22
+ ## 🔧 Technical Stack
23
+ This project serves as a demonstration of modern MLOps and PEFT (Parameter-Efficient Fine-Tuning) techniques:
24
+
25
+ * **Base Model:** `unsloth/llama-3-8b-bnb-4bit` (Quantized for efficiency)
26
+ * **Fine-Tuning:** Trained on the **Alpaca-Python-18k** dataset using **QLoRA** (Low-Rank Adaptation) adapters.
27
+ * **Optimization:** Utilized **Unsloth** for 2x faster training and optimized inference memory usage.
28
+ * **Infrastructure:**
29
+ * **Training:** Google Colab (T4 GPU) with Weights & Biases logging.
30
+ * **Inference:** Hugging Face Spaces (CPU/GPU) via `peft` and `gradio`.
31
+
32
+ ## 📊 Model Performance
33
+ The model was fine-tuned to strictly follow the "Instruction-Input-Response" format, minimizing hallucination and ensuring that generated tests match the syntax and logic of the input function.
34
+
35
+ ---
36
+ *Built by [Nihar Donthireddy](https://www.linkedin.com/in/nihar-donthireddy-048b96277/)*
37
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference