from deepsparse import TextGeneration
model = TextGeneration(model="hf:mgoin/deepseek-coder-1.3b-instruct-ds")
print(model("#write a quick sort algorithm in python", max_new_tokens=200).generations[0].text)
"""def quick_sort(arr): if len(arr) <= 1: return arr else: pivot = arr[len(arr) // 2] left = [x for x in arr if x < pivot] middle = [x for x in arr if x == pivot] right = [x for x in arr if x > pivot] return quick_sort(left) + middle + quick_sort(right)print(quick_sort([3,6,8,10,1,2,1]))#output: [1, 1, 2, 3, 6, 8, 10]#This is a simple implementation of the Quick Sort algorithm in Python. It works by selecting a 'pivot' element from the array and partitioning the other elements into two sub-arrays"""
Runs of mgoin deepseek-coder-1.3b-instruct-ds on huggingface.co
10
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
1
30-day runs
More Information About deepseek-coder-1.3b-instruct-ds huggingface.co Model
deepseek-coder-1.3b-instruct-ds huggingface.co
deepseek-coder-1.3b-instruct-ds huggingface.co is an AI model on huggingface.co that provides deepseek-coder-1.3b-instruct-ds's model effect (), which can be used instantly with this mgoin deepseek-coder-1.3b-instruct-ds model. huggingface.co supports a free trial of the deepseek-coder-1.3b-instruct-ds model, and also provides paid use of the deepseek-coder-1.3b-instruct-ds. Support call deepseek-coder-1.3b-instruct-ds model through api, including Node.js, Python, http.
deepseek-coder-1.3b-instruct-ds huggingface.co is an online trial and call api platform, which integrates deepseek-coder-1.3b-instruct-ds's modeling effects, including api services, and provides a free online trial of deepseek-coder-1.3b-instruct-ds, you can try deepseek-coder-1.3b-instruct-ds online for free by clicking the link below.
mgoin deepseek-coder-1.3b-instruct-ds online free url in huggingface.co:
deepseek-coder-1.3b-instruct-ds is an open source model from GitHub that offers a free installation service, and any user can find deepseek-coder-1.3b-instruct-ds on GitHub to install. At the same time, huggingface.co provides the effect of deepseek-coder-1.3b-instruct-ds install, users can directly use deepseek-coder-1.3b-instruct-ds installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
deepseek-coder-1.3b-instruct-ds install url in huggingface.co: