Text Generation
PEFT
Safetensors
English
text2code
LoRA
GPTQ
Llama-2-7B-Chat
text2python
instruction2code
nl2code
python
Instructions to use SwastikM/Llama-2-7B-Chat-text2code with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use SwastikM/Llama-2-7B-Chat-text2code with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("TheBloke/Llama-2-7b-Chat-GPTQ") model = PeftModel.from_pretrained(base_model, "SwastikM/Llama-2-7B-Chat-text2code") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
library_name:
|
| 3 |
base_model: TheBloke/Llama-2-7b-Chat-GPTQ
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
---
|
|
@@ -199,5 +199,3 @@ Carbon emissions can be estimated using the [Machine Learning Impact calculator]
|
|
| 199 |
|
| 200 |
[More Information Needed]
|
| 201 |
### Framework versions
|
| 202 |
-
|
| 203 |
-
- PEFT 0.10.0
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
base_model: TheBloke/Llama-2-7b-Chat-GPTQ
|
| 4 |
pipeline_tag: text-generation
|
| 5 |
---
|
|
|
|
| 199 |
|
| 200 |
[More Information Needed]
|
| 201 |
### Framework versions
|
|
|
|
|
|