From 6a9d6229f20843a4eaf5ab088d0a990ded3ef02a Mon Sep 17 00:00:00 2001 From: guanjihuan Date: Thu, 23 Nov 2023 15:36:17 +0800 Subject: [PATCH] delete --- .../LLM_model_python_API.py | 20 ------------------- .../running_function_remotely.py | 14 ------------- 2 files changed, 34 deletions(-) delete mode 100644 2023.11.20_LLM_model_python_API/LLM_model_python_API.py delete mode 100644 2023.11.20_running_function_remotely/running_function_remotely.py diff --git a/2023.11.20_LLM_model_python_API/LLM_model_python_API.py b/2023.11.20_LLM_model_python_API/LLM_model_python_API.py deleted file mode 100644 index 65d1e01..0000000 --- a/2023.11.20_LLM_model_python_API/LLM_model_python_API.py +++ /dev/null @@ -1,20 +0,0 @@ -""" -This code is supported by the website: https://www.guanjihuan.com -The newest version of this code is on the web page: https://www.guanjihuan.com/archives/37672 -""" - -# 初始例子 -import guan -response = guan.chat(prompt='你好', stream_show=1, top_p=0.8, temperature=0.8) -print('最终回答:', response, '\n') - -# 一个列表排序的应用例子 -import guan -import random -random_list = [random.randint(1, 100) for _ in range(5)] -print('初始随机列表:', random_list) -response = guan.chat(prompt='直接给出数组从小到大的排序结果,不需要其他说明,请保证结果是正确的:'+str(random_list), stream_show=1, top_p=0.01, temperature=0.01) # 这里把 top_p 和 temperature 降到最低可以在一定程度上保证结果的正确性。 -print('初始随机列表:', random_list) -random_list.sort() -print('算法排序后的列表:', random_list) -print('使用大语言模型排序后的列表:', response, '\n') # 效率不高,且不保证结果是百分百正确,通常对列表元素比较少的情况才有效。 \ No newline at end of file diff --git a/2023.11.20_running_function_remotely/running_function_remotely.py b/2023.11.20_running_function_remotely/running_function_remotely.py deleted file mode 100644 index f5fae20..0000000 --- a/2023.11.20_running_function_remotely/running_function_remotely.py +++ /dev/null @@ -1,14 +0,0 @@ -""" -This code is supported by the website: https://www.guanjihuan.com -The newest version of this code is on the web page: https://www.guanjihuan.com/archives/37680 -""" - -def func_example(a=1, b=2): - for i0 in range(3): - print(i0+1) - c = a + b - return a, b, c - -import guan -return_data = guan.run(function_name=func_example, args=(3, 4), return_show=0, get_print=1) -print(return_data) \ No newline at end of file