Instructions to use tanmoy-in/test_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use tanmoy-in/test_model with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("facebook/opt-350m") model = PeftModel.from_pretrained(base_model, "tanmoy-in/test_model") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from tanmoy-in/test_model: direct link, hf CLI and curl.
- Browser
- Download file 1.52 kB
-
https://huggingface.co/tanmoy-in/test_model/resolve/main/README.md
- Command line
-
hf download hf://tanmoy-in/test_model/README.md
-
curl -L -o README.md https://huggingface.co/tanmoy-in/test_model/resolve/main/README.md
1.52 kB
| license: other | |
| base_model: facebook/opt-350m | |
| tags: | |
| - generated_from_trainer | |
| model-index: | |
| - name: test_model | |
| results: [] | |
| library_name: peft | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # test_model | |
| This model is a fine-tuned version of [facebook/opt-350m](https://huggingface.co/facebook/opt-350m) on the None dataset. | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| The following `bitsandbytes` quantization config was used during training: | |
| - load_in_8bit: False | |
| - load_in_4bit: True | |
| - llm_int8_threshold: 6.0 | |
| - llm_int8_skip_modules: None | |
| - llm_int8_enable_fp32_cpu_offload: False | |
| - llm_int8_has_fp16_weight: False | |
| - bnb_4bit_quant_type: nf4 | |
| - bnb_4bit_use_double_quant: True | |
| - bnb_4bit_compute_dtype: bfloat16 | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 0.0002 | |
| - train_batch_size: 1 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 4 | |
| - total_train_batch_size: 4 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - lr_scheduler_warmup_steps: 2 | |
| - training_steps: 5 | |
| ### Training results | |
| ### Framework versions | |
| - PEFT 0.5.0.dev0 | |
| - Transformers 4.32.0.dev0 | |
| - Pytorch 2.0.1+cu118 | |
| - Datasets 2.13.1 | |
| - Tokenizers 0.13.3 | |