ChatGLM-6B
ChatGLM-6B copied to clipboard
[Help] <求问chatglm-6b有没有用代码预训练呢>
Is there an existing issue for this?
- [x] I have searched the existing issues
Current Behavior
求问chatglm-6b有没有用代码预训练呢
Expected Behavior
No response
Steps To Reproduce
同上
Environment
- OS:
- Python:
- Transformers:
- PyTorch:
- CUDA Support (`python -c "import torch; print(torch.cuda.is_available())"`) :
Anything else?
No response
目前没看到。。。
肯定用了,这是我问模型后回答的:
好的,以下是快速排序的Python实现:
def quicksort(arr):
if len(arr) <= 1:
return arr
else:
pivot = arr[0]
left = []
right = []
for i in range(1, len(arr)):
if arr[i] < pivot:
left.append(arr[i])
else:
right.append(arr[i])
return quicksort(left) + [pivot] + quicksort(right)
这个实现中,我们首先检查数组的长度,如果小于等于1,则直接返回该数组。否则,我们选择数组的第一个元素作为枢纽元(pivot),并将整个数组分为两个部分:左边的部分和右边的部分。
接下来,我们分别对左边和右边的