Enhance Ai
commited on
Commit
•
4e63a82
1
Parent(s):
1e61fef
Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
metrics:
|
4 |
+
- code_eval
|
5 |
+
pipeline_tag: text-generation
|
6 |
+
tags:
|
7 |
+
- LLM
|
8 |
+
- Text to text
|
9 |
+
- Code
|
10 |
+
- Chatgpt
|
11 |
+
- Llama
|
12 |
+
---
|
13 |
+
|
14 |
+
## Description
|
15 |
+
CodeHelp-33b is a merge model developed by Pranav for assisting developers with code-related tasks. This model is based on the Language Model (LLM) architecture.
|
16 |
+
|
17 |
+
## Features
|
18 |
+
- **Code Assistance:** Provides recommendations and suggestions for coding tasks.
|
19 |
+
- **Merge Model:** Combines multiple models for enhanced performance.
|
20 |
+
- **Developed by Pranav:** Created by Pranav, a skilled developer in the field.
|
21 |
+
|
22 |
+
## Usage
|
23 |
+
1. Load the model:
|
24 |
+
python
|
25 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
26 |
+
|
27 |
+
model = AutoModelForCausalLM.from_pretrained("enhanceaiteam/Codehelp-33b")
|
28 |
+
tokenizer = AutoTokenizer.from_pretrained("enhanceaiteam/Codehelp-33b")
|
29 |
+
|
30 |
+
|
31 |
+
|
32 |
+
2. Generate code assistance:
|
33 |
+
python
|
34 |
+
input_text = "Write a function to sort a list of integers."
|
35 |
+
input_ids = tokenizer.encode(input_text, return_tensors="pt")
|
36 |
+
output = model.generate(input_ids, max_length=100, num_return_sequences=1)
|
37 |
+
generated_code = tokenizer.decode(output[0], skip_special_tokens=True)
|
38 |
+
print(generated_code)
|
39 |
+
|
40 |
+
|
41 |
+
|
42 |
+
## Acknowledgements
|
43 |
+
- This model is based on the Hugging Face Transformers library.
|
44 |
+
- Special thanks to Pranav for developing and sharing this merge model for the developer community.
|
45 |
+
|
46 |
+
## License
|
47 |
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
48 |
+
|
49 |
+
Please customize this template with specific details about your Model CodeHelp-30b repository. If you have any further questions or need assistance, feel free to reach out.
|