Sponsored by
Vmake Labs Video Enhancer
-Vmake Labs Video Enhancer uses AI to improve video quality, restore details, reduce blur, and upscale videos to 8K.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_path="m-a-p/OpenCodeInterpreter-DS-6.7B"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(
model_path,
torch_dtype=torch.bfloat16,
device_map="auto",
)
model.eval()
prompt = "Write a function to find the shared elements from the given two lists."
inputs = tokenizer.apply_chat_template(
[{'role': 'user', 'content': prompt }],
return_tensors="pt"
).to(model.device)
outputs = model.generate(
inputs,
max_new_tokens=1024,
do_sample=False,
pad_token_id=tokenizer.eos_token_id,
eos_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(outputs[0][len(inputs[0]):], skip_special_tokens=True))
Runs of duyntnet OpenCodeInterpreter-DS-6.7B-imatrix-GGUF on huggingface.co
1.3K
Total runs
9
24-hour runs
32
3-day runs
-72
7-day runs
49
30-day runs
More Information About OpenCodeInterpreter-DS-6.7B-imatrix-GGUF huggingface.co Model
More OpenCodeInterpreter-DS-6.7B-imatrix-GGUF license Visit here:
OpenCodeInterpreter-DS-6.7B-imatrix-GGUF huggingface.co is an AI model on huggingface.co that provides OpenCodeInterpreter-DS-6.7B-imatrix-GGUF's model effect (), which can be used instantly with this duyntnet OpenCodeInterpreter-DS-6.7B-imatrix-GGUF model. huggingface.co supports a free trial of the OpenCodeInterpreter-DS-6.7B-imatrix-GGUF model, and also provides paid use of the OpenCodeInterpreter-DS-6.7B-imatrix-GGUF. Support call OpenCodeInterpreter-DS-6.7B-imatrix-GGUF model through api, including Node.js, Python, http.
OpenCodeInterpreter-DS-6.7B-imatrix-GGUF huggingface.co is an online trial and call api platform, which integrates OpenCodeInterpreter-DS-6.7B-imatrix-GGUF's modeling effects, including api services, and provides a free online trial of OpenCodeInterpreter-DS-6.7B-imatrix-GGUF, you can try OpenCodeInterpreter-DS-6.7B-imatrix-GGUF online for free by clicking the link below.
duyntnet OpenCodeInterpreter-DS-6.7B-imatrix-GGUF online free url in huggingface.co:
OpenCodeInterpreter-DS-6.7B-imatrix-GGUF is an open source model from GitHub that offers a free installation service, and any user can find OpenCodeInterpreter-DS-6.7B-imatrix-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of OpenCodeInterpreter-DS-6.7B-imatrix-GGUF install, users can directly use OpenCodeInterpreter-DS-6.7B-imatrix-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
OpenCodeInterpreter-DS-6.7B-imatrix-GGUF install url in huggingface.co: