Text Generation
PEFT
Safetensors
English
code
coding
full-stack
frontend
backend
agent
qwen3
lora
unsloth
fine-tuned
conversational
Instructions to use usernamebetter/nanocoder-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use usernamebetter/nanocoder-v1 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3-4B-unsloth-bnb-4bit") model = PeftModel.from_pretrained(base_model, "usernamebetter/nanocoder-v1") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use usernamebetter/nanocoder-v1 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for usernamebetter/nanocoder-v1 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for usernamebetter/nanocoder-v1 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for usernamebetter/nanocoder-v1 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="usernamebetter/nanocoder-v1", max_seq_length=2048, )
ckpt step 50 | loss: 1.2760
Browse files- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
- tokenizer_config.json +1 -2
adapter_config.json
CHANGED
|
@@ -34,13 +34,13 @@
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
| 37 |
-
"v_proj",
|
| 38 |
-
"o_proj",
|
| 39 |
"down_proj",
|
| 40 |
-
"
|
| 41 |
-
"gate_proj",
|
| 42 |
"q_proj",
|
| 43 |
-
"
|
|
|
|
|
|
|
|
|
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"task_type": "CAUSAL_LM",
|
|
|
|
| 34 |
"rank_pattern": {},
|
| 35 |
"revision": null,
|
| 36 |
"target_modules": [
|
|
|
|
|
|
|
| 37 |
"down_proj",
|
| 38 |
+
"up_proj",
|
|
|
|
| 39 |
"q_proj",
|
| 40 |
+
"gate_proj",
|
| 41 |
+
"k_proj",
|
| 42 |
+
"v_proj",
|
| 43 |
+
"o_proj"
|
| 44 |
],
|
| 45 |
"target_parameters": null,
|
| 46 |
"task_type": "CAUSAL_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 264308896
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd761a23bd55ffa811a6b14db57a8fb5abd340d990b37867b1b83848daa83cb0
|
| 3 |
size 264308896
|
tokenizer_config.json
CHANGED
|
@@ -6,10 +6,9 @@
|
|
| 6 |
"eos_token": "<|im_end|>",
|
| 7 |
"errors": "replace",
|
| 8 |
"is_local": false,
|
| 9 |
-
"local_files_only": false,
|
| 10 |
"model_max_length": 40960,
|
| 11 |
"pad_token": "<|vision_pad|>",
|
| 12 |
-
"padding_side": "
|
| 13 |
"split_special_tokens": false,
|
| 14 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 15 |
"unk_token": null,
|
|
|
|
| 6 |
"eos_token": "<|im_end|>",
|
| 7 |
"errors": "replace",
|
| 8 |
"is_local": false,
|
|
|
|
| 9 |
"model_max_length": 40960,
|
| 10 |
"pad_token": "<|vision_pad|>",
|
| 11 |
+
"padding_side": "right",
|
| 12 |
"split_special_tokens": false,
|
| 13 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 14 |
"unk_token": null,
|