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
|
@@ -89,7 +89,7 @@ print("Generated Output:",python_code)
|
|
| 89 |
>>>
|
| 90 |
```
|
| 91 |
``````
|
| 92 |
-
Write a Python program to implement K-Means clustering. The program should take two mandatory arguments, k and data, where k is the number of clusters and data is a 2D array containing the data points k = 3
|
| 93 |
data = [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]] Ready for action! Let's do this! ```python
|
| 94 |
import numpy as np
|
| 95 |
|
|
|
|
| 89 |
>>>
|
| 90 |
```
|
| 91 |
``````
|
| 92 |
+
Generated Output:Write a Python program to implement K-Means clustering. The program should take two mandatory arguments, k and data, where k is the number of clusters and data is a 2D array containing the data points k = 3
|
| 93 |
data = [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]] Ready for action! Let's do this! ```python
|
| 94 |
import numpy as np
|
| 95 |
|