Text Generation
Safetensors
English
Khmer
customs
hs-code
classification
cambodia
gemma
unsloth
qlora
conversational
Instructions to use Sothay/gemma4-hscode-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- Unsloth Studio
How to use Sothay/gemma4-hscode-classifier 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 Sothay/gemma4-hscode-classifier 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 Sothay/gemma4-hscode-classifier to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Sothay/gemma4-hscode-classifier to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Sothay/gemma4-hscode-classifier", max_seq_length=2048, )
Update README.md
Browse files
README.md
CHANGED
|
@@ -61,6 +61,16 @@ import os, re
|
|
| 61 |
import torch
|
| 62 |
torch._dynamo.config.recompile_limit = 64
|
| 63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
#------------
|
| 65 |
|
| 66 |
from unsloth import FastModel
|
|
|
|
| 61 |
import torch
|
| 62 |
torch._dynamo.config.recompile_limit = 64
|
| 63 |
|
| 64 |
+
|
| 65 |
+
import warnings
|
| 66 |
+
|
| 67 |
+
# Suppress the specific PyTorch size check warning from bitsandbytes
|
| 68 |
+
warnings.filterwarnings(
|
| 69 |
+
"ignore",
|
| 70 |
+
category=FutureWarning,
|
| 71 |
+
message=".*_check_is_size will be removed in a future PyTorch release.*"
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
#------------
|
| 75 |
|
| 76 |
from unsloth import FastModel
|