NotIsora commited on
Commit
bbcf245
·
verified ·
1 Parent(s): 82a2bcb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +43 -1
README.md CHANGED
@@ -48,6 +48,9 @@ The model should not be used for:
48
  - Generating harmful, toxic, or unsafe content.
49
  - Tasks entirely unrelated to food, cooking, or culinary arts (its performance may degrade outside its specialized domain).
50
 
 
 
 
51
  ## Bias, Risks, and Limitations
52
 
53
  While the model generates detailed recipes, cooking involves physical safety (e.g., using knives, handling hot surfaces, food safety/allergies). Users should exercise common sense and verify food safety standards independently. The model may occasionally hallucinate ingredients or steps that do not perfectly align with traditional recipes.
@@ -89,4 +92,43 @@ with torch.inference_mode():
89
  )
90
 
91
  response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
92
- print(response)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  - Generating harmful, toxic, or unsafe content.
49
  - Tasks entirely unrelated to food, cooking, or culinary arts (its performance may degrade outside its specialized domain).
50
 
51
+ ## If you want to train by yourself
52
+
53
+
54
  ## Bias, Risks, and Limitations
55
 
56
  While the model generates detailed recipes, cooking involves physical safety (e.g., using knives, handling hot surfaces, food safety/allergies). Users should exercise common sense and verify food safety standards independently. The model may occasionally hallucinate ingredients or steps that do not perfectly align with traditional recipes.
 
92
  )
93
 
94
  response = tokenizer.decode(outputs[0][inputs['input_ids'].shape[1]:], skip_special_tokens=True)
95
+ print(response)
96
+ ```
97
+
98
+ ## Training Details
99
+ ### Training Data
100
+ - The model was trained on a processed subset of the AkashPS11/recipes_data_food.com dataset. The data was filtered, parsed, and converted into ChatML format to simulate a user asking for a recipe and a chef responding with structured instructions.
101
+
102
+ ### Training Procedure
103
+ - The model was trained using parameter-efficient fine-tuning (QLoRA) to optimize VRAM usage while maintaining performance.
104
+
105
+ ### Training Hyperparameters
106
+ - Training regime: bf16 mixed precision
107
+ - Epochs: 6
108
+ - Max Sequence Length: 1024
109
+ - Per-device Batch Size: 2
110
+ - Gradient Accumulation Steps: 4
111
+ - Optimizer: paged_adamw_8bit
112
+ - Learning Rate: 5e-5
113
+ - Learning Rate Scheduler: Cosine
114
+ - Warmup Ratio: 0.1
115
+ - LoRA Rank (r): 16
116
+ - LoRA Alpha: 32
117
+
118
+ ## Technical Specifications
119
+ ### Compute Infrastructure:
120
+ - The model was trained on Google Colab.
121
+
122
+ ## Hardware:
123
+ - GPU: 1x NVIDIA L4 / T4 Tensor Core GPU
124
+
125
+ ### Software:
126
+ - PyTorch
127
+ - Transformers
128
+ - PEFT
129
+ TRL
130
+ - BitsAndBytes
131
+ - FlashAttention / SDPA
132
+
133
+ Model Card Contact
134
+ For any questions, issues, or collaborations, feel free to reach out via Hugging Face.