Create README.md
Browse files
README.md
ADDED
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
- zh
|
5 |
+
- fr
|
6 |
+
pipeline_tag: text-generation
|
7 |
+
---
|
8 |
+
This repository is to store all parameters for RWKV6 distillation from Qwen25.
|
9 |
+
|
10 |
+
Try to use the model via : https://github.com/yynil/RWKVinLLAMA/blob/main/rwkv_llama/test_custom_cache_rwkv.py
|
11 |
+
|
12 |
+
Examples:
|
13 |
+
|
14 |
+
1. Layer 2 [0,2] Distilled model:
|
15 |
+
Journal planing
|
16 |
+
```bash
|
17 |
+
python rwkv_llama/test_custom_cache_rwkv.py --config_file configs/step_wise/test_hybrid_2_layer_qwenmlp_local.yaml --ckpt_file /home/yueyulin/model/qwen/layer2.pth --input_text "I will stay in Beijing on Oct 5,6, 2024. Please help me to make a jounal plan for these two days."
|
18 |
+
...
|
19 |
+
...
|
20 |
+
Certainly! Here's a sample journal plan for your stay in Beijing on October 5th and 6th, 2024:
|
21 |
+
|
22 |
+
### Day 1: October 5, 2024
|
23 |
+
|
24 |
+
**Morning:**
|
25 |
+
- **8:00 AM - 9:00 AM:** Wake up and have breakfast at your hotel.
|
26 |
+
- **9:30 AM - 12:00 PM:** Visit the Forbidden City (Palace Museum). Explore the grand halls, courtyards, and exhibitions showcasing imperial history.
|
27 |
+
- **12:00 PM - 1:00 PM:** Have lunch at a nearby restaurant.
|
28 |
+
- **1:30 PM - 4:00 PM:** Walk around Tiananmen Square and take photos of the iconic Tiananmen Gate and the National Museum of China.
|
29 |
+
- **4:30 PM - 6:00 PM:** Stroll through the scenic Beihai Park, enjoying the beautiful gardens and lake.
|
30 |
+
|
31 |
+
**Evening:**
|
32 |
+
- **6:30 PM - 8:00 PM:** Enjoy dinner at a local restaurant, perhaps trying Peking duck or other traditional dishes.
|
33 |
+
- **8:30 PM - 10:00 PM:** Watch a performance of Beijing Opera or a traditional Chinese acrobatics show.
|
34 |
+
- **10:00 PM:** Return to your hotel and relax.
|
35 |
+
|
36 |
+
### Day 2: October 6, 2024
|
37 |
+
|
38 |
+
**Morning:**
|
39 |
+
- **8:00 AM - 9:00 AM:** Have breakfast at your hotel.
|
40 |
+
- **9:30 AM - 12:00 PM:** Visit the Summer Palace, one of the largest and most well-preserved imperial gardens in China. Explore the Hall of Happiness, the Long Corridor, and the Kunming Lake.
|
41 |
+
- **12:00 PM - 1:00 PM:** Have lunch at a nearby restaurant.
|
42 |
+
- **1:30 PM - 4:00 PM:** Explore the Temple of Heaven, known for its beautiful architecture and historical significance. Take a guided tour to learn about the religious practices and rituals that took place there.
|
43 |
+
- **4:30 PM - 6:00 PM:** Visit the National Library of China, which houses an extensive collection of books, manuscripts, and rare documents.
|
44 |
+
|
45 |
+
**Evening:**
|
46 |
+
- **6:30 PM - 8:00 PM:** Enjoy dinner at a local restaurant, perhaps trying some Sichuan cuisine.
|
47 |
+
- **8:30 PM - 10:00 PM:** Take a leisurely walk along Qianmen Street, a historic commercial area with many shops, restaurants, and cultural attractions.
|
48 |
+
- **10:00 PM:** Return to your hotel and prepare for departure or further exploration.
|
49 |
+
|
50 |
+
### Tips:
|
51 |
+
- **Transportation:** Consider using public transportation like the subway or buses to save time and money. The Beijing Subway is efficient and covers most major tourist areas.
|
52 |
+
- **Weather:** Check the weather forecast before you go out each day. Beijing can be quite cold in the fall, so dress accordingly.
|
53 |
+
- **Safety:** Keep your valuables secure and be aware of your surroundings, especially in crowded areas.
|
54 |
+
- **Language:** While many people speak English, it’s always helpful to know some basic Mandarin phrases.
|
55 |
+
|
56 |
+
Enjoy your trip to Beijing! If you need more specific recommendations or details, feel free to ask.
|
57 |
+
```
|
58 |
+
|
59 |
+
Mathmatic solver:
|
60 |
+
```bash
|
61 |
+
python rwkv_llama/test_custom_cache_rwkv.py --config_file configs/step_wise/test_hybrid_2_layer_qwenmlp_local.yaml --ckpt_file /home/yueyulin/model/qwen/layer2.pth --input_text "## Question: \n\nFarmer Brown has 20 animals on his farm, all either chickens or cows. They have a total of 70 legs, all together. How many of the animals are chickens? ## Instruction \n\nPlease answer this question by first reasoning and then providing your answer."
|
62 |
+
...
|
63 |
+
...
|
64 |
+
To solve this problem, we can use a system of equations based on the information given.
|
65 |
+
|
66 |
+
Let's define:
|
67 |
+
- \( C \) as the number of chickens.
|
68 |
+
- \( K \) as the number of cows.
|
69 |
+
|
70 |
+
From the problem, we know two things:
|
71 |
+
1. The total number of animals is 20.
|
72 |
+
2. The total number of legs is 70.
|
73 |
+
|
74 |
+
We can write these as equations:
|
75 |
+
1. \( C + K = 20 \)
|
76 |
+
2. Chickens have 2 legs each, and cows have 4 legs each, so \( 2C + 4K = 70 \).
|
77 |
+
|
78 |
+
First, let's simplify the second equation by dividing everything by 2:
|
79 |
+
\[ C + 2K = 35 \]
|
80 |
+
|
81 |
+
Now we have the system:
|
82 |
+
1. \( C + K = 20 \)
|
83 |
+
2. \( C + 2K = 35 \)
|
84 |
+
|
85 |
+
Next, we can subtract the first equation from the second to eliminate \( C \):
|
86 |
+
\[ (C + 2K) - (C + K) = 35 - 20 \]
|
87 |
+
\[ C + 2K - C - K = 15 \]
|
88 |
+
\[ K = 15 \]
|
89 |
+
|
90 |
+
So, there are 15 cows. Now, we can substitute \( K = 15 \) back into the first equation to find \( C \):
|
91 |
+
\[ C + 15 = 20 \]
|
92 |
+
\[ C = 20 - 15 \]
|
93 |
+
\[ C = 5 \]
|
94 |
+
|
95 |
+
Therefore, there are 5 chickens on Farmer Brown's farm.
|
96 |
+
```
|