Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,44 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# DaFucV2 AI - Dynamic AI Model
|
2 |
+
|
3 |
+
This repository hosts the model for **DaFucV2 AI**, a dynamic AI architecture built using the **Fractal Universe Chocolate Wafer Model (FUCWM)**. The model is designed to integrate with the **DaFucV2 app**, offering interactive conversational capabilities and adaptive thinking loops.
|
4 |
+
|
5 |
+
## Model Overview
|
6 |
+
|
7 |
+
- **Model Architecture**: Combines a **Variational Autoencoder (VAE)** with fractal-like expanding layers based on complexity, using a **FractalNode** structure for dynamic growth.
|
8 |
+
- **Self-Thinking and Feedback**: Incorporates an iterative feedback mechanism allowing the model to send its own thoughts back into itself for further refinement.
|
9 |
+
- **Applications**: Optimized for conversational agents, adaptive feedback systems, and deeper multi-layered reasoning.
|
10 |
+
- **Attention Mechanism**: The model dynamically adjusts attention across fractal layers to modulate responses based on the complexity of the input.
|
11 |
+
|
12 |
+
## DaFucV2 App Integration
|
13 |
+
|
14 |
+
The **DaFucV2 AI** model is designed to work seamlessly with the **DaFucV2 app**, available on [GitHub](https://github.com/anttiluode/DaFucV2/tree/main). You can use the app to interact with the model, send queries, and explore its capabilities in real time.
|
15 |
+
|
16 |
+
### Demo Video
|
17 |
+
|
18 |
+
Watch a video demonstration of me talking to the DaFucV2 AI [here on YouTube](https://www.youtube.com/watch?v=-PQ-rTkqwQ8).
|
19 |
+
|
20 |
+
## Usage
|
21 |
+
|
22 |
+
To load and use the model within the app:
|
23 |
+
|
24 |
+
1. **Download the app** from the [DaFucV2 GitHub repository](https://github.com/anttiluode/DaFucV2/tree/main).
|
25 |
+
2. **Place the model** (`model.pth`) in the appropriate directory.
|
26 |
+
3. Run the app by following the instructions in the repository.
|
27 |
+
|
28 |
+
To manually load the model in PyTorch:
|
29 |
+
|
30 |
+
```python
|
31 |
+
import torch
|
32 |
+
from model import DynamicAI
|
33 |
+
|
34 |
+
# Load the saved model
|
35 |
+
model = DynamicAI(vocab_size=50000, embed_dim=256, latent_dim=256, output_dim=256, max_depth=7)
|
36 |
+
model.load_state_dict(torch.load("model.pth"))
|
37 |
+
|
38 |
+
# Set model to evaluation mode
|
39 |
+
model.eval()
|
40 |
+
|
41 |
+
# Example usage with input text
|
42 |
+
input_text = "Hello, how are you?"
|
43 |
+
response = model.chat(input_text)
|
44 |
+
print(response)
|