You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[easy](https://github.com/google-deepmind/alphageometry/issues/96) to use (especially on [Windows](https://github.com/google-deepmind/alphageometry/issues/120)):
7
7
8
-
* Use [ChatLLM.cpp](http://github.com/foldl/chatllm.cpp) for LLM interference.
8
+
* Use [ChatLLM.cpp](http://github.com/foldl/chatllm.cpp) for LM interference, no Tensorflow/Jax/Flax.
9
9
10
-
*Greatly**simplified**_requirements.txt_.
10
+
*Significantly**simplified**_requirements.txt_.
11
11
12
12
* Indent with **four** spaces (🖕 two spaces).
13
13
@@ -37,21 +37,31 @@ introduced in the [Nature 2024](https://www.nature.com/articles/s41586-023-06747
37
37
<imgalt="fig1"width="800px"src="fig1.svg">
38
38
</center>
39
39
40
-
## Dependencies
40
+
## Get started
41
41
42
-
1.Install ChatLLM.cpp DLL (or .so whatever)
42
+
1.Get the source code.
43
43
44
-
DLL will be contained in a release. Or, you can [build](https://github.com/foldl/chatllm.cpp/blob/master/docs/binding.md#precondition)`libchatllmb` from source,
45
-
and copy the DLL into `src/chatllm/bindings`.
44
+
Either clone this repository or download it.
46
45
47
-
1. Install Python dependencies
46
+
1. Install ChatLLM.cpp DLLs (or .so whatever).
47
+
48
+
You can find prebuilt DLLs in releases. Or, you can [build](https://github.com/foldl/chatllm.cpp/blob/master/docs/binding.md#precondition)`libchatllmb` from source.
49
+
Copy these DLLs into `src/chatllm/bindings`.
50
+
51
+
1. Install Python dependencies.
48
52
49
53
```sh
50
54
pip install -r requirements.txt
51
55
```
52
56
53
57
Optionally, you can create a virtual environment, and then install dependencies into it.
54
58
59
+
1. Run `run_tests.bat` to check if everything is Ok.
60
+
61
+
The language model will be downloaded automatically.
62
+
63
+
1. Run `test.bat` to solve a IMO problem with the AlphaGeometry solver.
64
+
55
65
## Command line flags
56
66
57
67
A list of command line flags.
@@ -125,7 +135,7 @@ TIP: Additionally passing the flag `--out_file=path/to/output/text/file.txt`
125
135
will write the proof to a text file.
126
136
127
137
Running on all problems in`imo_ag_30.txt` will yield solutions to
128
-
14 of them, as reported in Table 1 inour paper.
138
+
14 of them, as reported in Table 1 inthe paper.
129
139
130
140
### Example of AlphaGeometry
131
141
@@ -201,7 +211,8 @@ where the points are named alphabetically, and so it expects
201
211
the same during test time.
202
212
203
213
As can be seen in the output, initially DDAR failed to solve the problem.
204
-
The LM proposes one auxiliary constructions (Note: Beam search not implemented yet):
214
+
The LM proposes one auxiliary construction (Note: Beam search not implemented yet,
215
+
and LM will propose only one auxiliary construction.):
205
216
206
217
*`e = on_line e a c, on_line e b d`, i.e.,
207
218
`E` is the intersection of `AC` and `BD`.
@@ -230,7 +241,7 @@ each of them and their description.
230
241
|`alphageometry.py`| Main script that loads problems, calls DD+AR or AlphaGeometry solver, and prints solutions. |
231
242
|`pretty.py`| Pretty formating the solutions output by solvers. |
232
243
|`test_xx.py`| Tests for the corresponding module. |
233
-
|`run.sh`/`run.bat`| Script to execute instructions in README. |
244
+
|`run.sh`/`run.bat`| Script to run a demo in README.|
234
245
|`run_tests.sh`/`run_tests.bat`| Script to execute the test suite. |
0 commit comments