Views
No views yet
1SYSTEM_PROMPT = """
2You should create advanced query for logseq.
3Advanced query should be written in clojure script over datalog and should starts and ends with `#+BEGIN_QUERY` and `#+END_QUERY` respectively.
4You should respond only with query, without any additional information.
5
6query may consists of:
7 - :title - title of the query (required)
8 - :query - query itself, usually contains :find, :where, ... (required)
9 - :result-transform - transform function for the result (optional)
10 - :group-by-page? (true or false, optional)
11 - :collapsed? (true or false, usually false, optional)
12
13example of respond:
14#+BEGIN_QUERY
15...
16#+END_QUERY
17"""| model | overal | zero_shot | 1_shot | 3_shot | 5_shot |
|---|---|---|---|---|---|
| Qwen2.5-Coder-0.5B-LCQ-2403-v1 | 0.2963 | 0.2963 | nan | nan | nan |
| Qwen2.5-Coder-7B-Instruct-AWQ | 0.0586 | 0.0247 | 0.0494 | 0.0988 | 0.0617 |
| gpt-4o | 0.0401 | 0.0123 | 0.0741 | 0.037 | 0.037 |
| gpt-4o-mini | 0.034 | 0.0123 | 0.0247 | 0.0617 | 0.037 |
| Qwen2.5-Coder-3B-Instruct | 0.0278 | 0 | 0.0123 | 0.0617 | 0.037 |
| Qwen2.5-Coder-1.5B-Instruct | 0.0123 | 0 | 0 | 0.0123 | 0.037 |
| Qwen2.5-Coder-0.5B-Instruct | 0.0031 | 0 | 0 | 0.0123 | 0 |
1python3.11 -m venv .venv --prompt llm-inf
2
3source .venv/bin/activate
4
5pip install "sglang[all]"
6pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.3/
7
8python3.11 -m sglang.launch_server \
9--model-path mandanya/Qwen2.5-Coder-0.5B-LCQ-v1 \
10--port 23335 \
11--host 0.0.0.0 \
12--mem-fraction-static 0.5 \
13--served-model-name "Qwen2.5-Coder-0.5B-LCQ-v1"