This model is a fine-tuned LoRA adapter for
Qwen2.5-Coder-7B-Instruct
, specialized in generating high-quality Java code for Minecraft server plugins (Spigot/Paper API).
To use this model, you need to load it as an adapter on top of the base Qwen2.5-Coder model using the
peft
or
unsloth
library.
from unsloth import FastLanguageModel
import torch
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "unsloth/qwen2.5-coder-7b-instruct-bnb-4bit",
max_seq_length = 2048,
load_in_4bit = True,
)
# Load your fine-tuned adapter
model = FastLanguageModel.for_inference(model)
model.load_adapter("Akahsizrr/toncode-v1")
# Test prompt
instruction = "Create a listener that gives a player a Diamond Sword when they first join the server."
messages = [{"role": "user", "content": instruction}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt").to("cuda")
outputs = model.generate(input_ids=inputs, max_new_tokens=512)
print(tokenizer.batch_decode(outputs)[0])
Runs of Akahsizrr toncode-v1 on huggingface.co
3
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
-1
30-day runs
More Information About toncode-v1 huggingface.co Model
toncode-v1 huggingface.co
toncode-v1 huggingface.co is an AI model on huggingface.co that provides toncode-v1's model effect (), which can be used instantly with this Akahsizrr toncode-v1 model. huggingface.co supports a free trial of the toncode-v1 model, and also provides paid use of the toncode-v1. Support call toncode-v1 model through api, including Node.js, Python, http.
toncode-v1 huggingface.co is an online trial and call api platform, which integrates toncode-v1's modeling effects, including api services, and provides a free online trial of toncode-v1, you can try toncode-v1 online for free by clicking the link below.
Akahsizrr toncode-v1 online free url in huggingface.co:
toncode-v1 is an open source model from GitHub that offers a free installation service, and any user can find toncode-v1 on GitHub to install. At the same time, huggingface.co provides the effect of toncode-v1 install, users can directly use toncode-v1 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.