Downloads · 30 days
6
1% of all-time downloads
hainguyen306201/bank-model
bank-model is a machine learning model from hainguyen306201. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
Model này được fine-tuned từ Qwen3-4B-Instruct-2507 cho các tác vụ liên quan đến ngân hàng và tài chính.
Downloads · 30 days
6
1% of all-time downloads
All-time downloads
480
Public
Parameters
4B
8.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors8 GB · 100%
From the Hugging Face model README
Model này được fine-tuned từ Qwen3-4B-Instruct-2507 cho các tác vụ liên quan đến ngân hàng và tài chính.
Model này hiện đã có đầy đủ config và tokenizer files. Để có thể sử dụng và training, bạn cần upload model weights từ base model Qwen3-4B-Instruct-2507.
# Cài đặt dependencies
pip install huggingface_hub transformers
# Chạy script để tải và upload model weights
python upload_model_weights.py
Script này sẽ:
Qwen/Qwen3-4B-Instruct-2507 (~8GB)hainguyen306201/bank-modelfrom huggingface_hub import HfApi, snapshot_download
# Tải model từ base model
snapshot_download(
repo_id="Qwen/Qwen3-4B-Instruct-2507",
local_dir="./temp_model",
local_dir_use_symlinks=False
)
# Upload lên bank-model repo
api = HfApi()
api.upload_folder(
folder_path="./temp_model",
repo_id="hainguyen306201/bank-model",
repo_type="model",
ignore_patterns=["*.md", "*.txt"] # Bỏ qua README và các file text
)
Sau khi đã upload model weights, bạn có thể sử dụng model như sau:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "hainguyen306201/bank-model"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
# Sử dụng model...
Model này có thể được fine-tune tiếp cho các tác vụ ngân hàng cụ thể:
from transformers import AutoModelForCausalLM, TrainingArguments, Trainer
# Load model
model = AutoModelForCausalLM.from_pretrained("hainguyen306201/bank-model")
# Setup training arguments
training_args = TrainingArguments(
output_dir="./results",
num_train_epochs=3,
per_device_train_batch_size=4,
# ... các tham số khác
)
# Training...