Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- microsoft/orca-math-word-problems-200k
|
5 |
+
- ise-uiuc/Magicoder-Evol-Instruct-110K
|
6 |
+
- Vezora/Tested-22k-Python-Alpaca
|
7 |
+
---
|
8 |
+
|
9 |
+
# Datacard for Custom Trained Model
|
10 |
+
- Base Model : [Kukedlc/NeuralExperiment-7b-dare-ties](https://huggingface.co/Kukedlc/NeuralExperiment-7b-dare-ties)
|
11 |
+
|
12 |
+
|
13 |
+
## Model Description
|
14 |
+
This model is an experimental AI trained on three distinct datasets focusing on logical reasoning, mathematics, and programming. The training process involved fine-tuning from the last layer (31) backward with a gradually decreasing learning rate. The primary goal is to address and rectify the common 'INSTINST' bug observed in leaderboard models through targeted training on the latest layers.
|
15 |
+
|
16 |
+
## Datasets Used for Training
|
17 |
+
- `microsoft/orca-math-word-problems-200k`: A large-scale dataset of mathematical word problems aimed at enhancing the model's numerical reasoning and problem-solving capabilities.
|
18 |
+
- `ise-uiuc/Magicoder-Evol-Instruct-110K`: A dataset designed to improve code generation and understanding, contributing to the model's programming language proficiency.
|
19 |
+
- `sahil2801/CodeAlpaca-20k`: A dataset focused on programming challenges to further refine the model's coding and logical reasoning skills.
|
20 |
+
|
21 |
+
Each dataset contributed 20,000 data points to the training process, ensuring a balanced representation of logic, mathematics, and programming tasks.
|
22 |
+
|
23 |
+
## Training Environment
|
24 |
+
- The model was trained on Kaggle's free GPU environment, allowing for cost-effective fine-tuning and experimentation.
|
25 |
+
- Users interested in replicating or extending this training can find the Kaggle notebook in my profile or request it directly for collaborative purposes.
|
26 |
+
|
27 |
+
## Preliminary Results
|
28 |
+
- The model shows promising results in solving logical puzzles and mathematical problems, especially those with misleading or non-obvious solutions that it initially struggled with.
|
29 |
+
- Ongoing experiments aim to quantify the impact of targeted training on the model's reasoning capabilities across different domains.
|
30 |
+
|
31 |
+
## Invitation for Collaboration
|
32 |
+
- Feedback, suggestions, and collaborative efforts are highly encouraged to further refine and evaluate the model.
|
33 |
+
- If interested in contributing or experimenting with this model, please feel free to reach out or access the code directly from my Kaggle profile.
|
34 |
+
|
35 |
+
## Contact Information
|
36 |
+
- For any inquiries, suggestions, or collaboration proposals, please contact me!
|
37 |
+
|
38 |
+
```python
|
39 |
+
!pip install -qU transformers accelerate
|
40 |
+
|
41 |
+
from transformers import AutoTokenizer
|
42 |
+
import transformers
|
43 |
+
import torch
|
44 |
+
|
45 |
+
model = "Kukedlc/NeuralExperiment-7b-MagicCoder-v7"
|
46 |
+
messages = [{"role": "user", "content": "What is a large language model?"}]
|
47 |
+
|
48 |
+
tokenizer = AutoTokenizer.from_pretrained(model)
|
49 |
+
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
50 |
+
pipeline = transformers.pipeline(
|
51 |
+
"text-generation",
|
52 |
+
model=model,
|
53 |
+
torch_dtype=torch.float16,
|
54 |
+
device_map="auto",
|
55 |
+
)
|
56 |
+
|
57 |
+
outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
|
58 |
+
print(outputs[0]["generated_text"])
|
59 |
+
```
|
60 |
+
|
61 |
+

|