Instructions to use ananyarn/python_code_from_algo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use ananyarn/python_code_from_algo with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("TheBloke/Mistral-7B-Instruct-v0.1-GPTQ") model = PeftModel.from_pretrained(base_model, "ananyarn/python_code_from_algo") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970---license: apache-2.0library_name: pefttags:- trl- sft- generated_from_trainerdatasets:- generatorbase_model: TheBloke/Mistral-7B-Instruct-v0.1-GPTQmodel-index:- name: python_code_from_algo results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# python_code_from_algo
This model is a fine-tuned version of [TheBloke/Mistral-7B-Instruct-v0.1-GPTQ](https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GPTQ) on the generator dataset.It achieves the following results on the evaluation set:- Loss: 0.5718
## Model description
More information needed
## Intended uses & limitations
More information needed
## Training and evaluation data
More information needed
## Training procedure
### Training hyperparameters
The following hyperparameters were used during training:- learning_rate: 2e-05- train_batch_size: 4- eval_batch_size: 4- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 16- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: constant- lr_scheduler_warmup_ratio: 0.03- training_steps: 250
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 0.8344 | 0.09 | 50 | 0.7093 || 0.6462 | 0.18 | 100 | 0.6182 || 0.5822 | 0.27 | 150 | 0.5691 || 0.5625 | 0.36 | 200 | 0.5667 || 0.5498 | 0.44 | 250 | 0.5718 |
### Framework versions
- PEFT 0.8.2- Transformers 4.37.2- Pytorch 2.2.0- Datasets 2.16.1- Tokenizers 0.15.1README.mdAdded+70