OpenCodeInterpreter is a family of open-source code generation systems designed to bridge the gap between large language models and advanced proprietary systems like the GPT-4 Code Interpreter. It significantly advances code generation capabilities by integrating execution and iterative refinement functionalities.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM
model_path="OpenCodeInterpreter-CL-13B"
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))
Contact
If you have any inquiries, please feel free to raise an issue or reach out to us via email at:
[email protected]
,
[email protected]
.
We're here to assist you!"
Runs of LoneStriker OpenCodeInterpreter-CL-13B-GGUF on huggingface.co
347
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About OpenCodeInterpreter-CL-13B-GGUF huggingface.co Model
OpenCodeInterpreter-CL-13B-GGUF huggingface.co
OpenCodeInterpreter-CL-13B-GGUF huggingface.co is an AI model on huggingface.co that provides OpenCodeInterpreter-CL-13B-GGUF's model effect (), which can be used instantly with this LoneStriker OpenCodeInterpreter-CL-13B-GGUF model. huggingface.co supports a free trial of the OpenCodeInterpreter-CL-13B-GGUF model, and also provides paid use of the OpenCodeInterpreter-CL-13B-GGUF. Support call OpenCodeInterpreter-CL-13B-GGUF model through api, including Node.js, Python, http.
OpenCodeInterpreter-CL-13B-GGUF huggingface.co is an online trial and call api platform, which integrates OpenCodeInterpreter-CL-13B-GGUF's modeling effects, including api services, and provides a free online trial of OpenCodeInterpreter-CL-13B-GGUF, you can try OpenCodeInterpreter-CL-13B-GGUF online for free by clicking the link below.
LoneStriker OpenCodeInterpreter-CL-13B-GGUF online free url in huggingface.co:
OpenCodeInterpreter-CL-13B-GGUF is an open source model from GitHub that offers a free installation service, and any user can find OpenCodeInterpreter-CL-13B-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of OpenCodeInterpreter-CL-13B-GGUF install, users can directly use OpenCodeInterpreter-CL-13B-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
OpenCodeInterpreter-CL-13B-GGUF install url in huggingface.co: