Instructions to use Ba2han/experimental2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ba2han/experimental2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ba2han/experimental2", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Ba2han/experimental2", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Ba2han/experimental2", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Ba2han/experimental2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ba2han/experimental2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/experimental2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Ba2han/experimental2
- SGLang
How to use Ba2han/experimental2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Ba2han/experimental2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/experimental2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Ba2han/experimental2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ba2han/experimental2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Studio new
How to use Ba2han/experimental2 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 Ba2han/experimental2 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 Ba2han/experimental2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ba2han/experimental2 to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Ba2han/experimental2", max_seq_length=2048, ) - Docker Model Runner
How to use Ba2han/experimental2 with Docker Model Runner:
docker model run hf.co/Ba2han/experimental2
Training in progress, step 975, checkpoint
Browse files
last-checkpoint/config.json
CHANGED
|
@@ -12,9 +12,9 @@
|
|
| 12 |
"eos_token_id": 50031,
|
| 13 |
"head_dim": 64,
|
| 14 |
"hidden_act": "silu",
|
| 15 |
-
"hidden_size":
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
-
"intermediate_size":
|
| 18 |
"layer_types": [
|
| 19 |
"full_attention",
|
| 20 |
"full_attention",
|
|
@@ -57,34 +57,48 @@
|
|
| 57 |
"full_attention",
|
| 58 |
"full_attention",
|
| 59 |
"full_attention",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
"full_attention"
|
| 61 |
],
|
| 62 |
"max_position_embeddings": 8192,
|
| 63 |
-
"max_window_layers":
|
|
|
|
| 64 |
"model_name": "test_checkpoint",
|
| 65 |
"model_type": "qwen3",
|
|
|
|
| 66 |
"num_attention_heads": 16,
|
| 67 |
-
"num_hidden_layers":
|
| 68 |
"num_key_value_heads": 4,
|
| 69 |
"pad_token_id": 50034,
|
| 70 |
-
"
|
| 71 |
-
"resid_lambda_init": 1.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
"rms_norm_eps": 1e-06,
|
| 73 |
"rope_parameters": {
|
| 74 |
"rope_theta": 50000,
|
| 75 |
"rope_type": "default"
|
| 76 |
},
|
|
|
|
| 77 |
"sliding_window": null,
|
| 78 |
-
"
|
| 79 |
-
"
|
| 80 |
-
"
|
| 81 |
-
"softcap_shift": 5.0,
|
| 82 |
-
"tie_word_embeddings": true,
|
| 83 |
"transformers_version": "5.7.0",
|
| 84 |
"unsloth_version": "2026.4.8",
|
| 85 |
"use_cache": false,
|
| 86 |
-
"use_qk_norm_patch": true,
|
| 87 |
"use_sliding_window": false,
|
| 88 |
"vocab_size": 50048,
|
| 89 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
}
|
|
|
|
| 12 |
"eos_token_id": 50031,
|
| 13 |
"head_dim": 64,
|
| 14 |
"hidden_act": "silu",
|
| 15 |
+
"hidden_size": 1152,
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
+
"intermediate_size": 2880,
|
| 18 |
"layer_types": [
|
| 19 |
"full_attention",
|
| 20 |
"full_attention",
|
|
|
|
| 57 |
"full_attention",
|
| 58 |
"full_attention",
|
| 59 |
"full_attention",
|
| 60 |
+
"full_attention",
|
| 61 |
+
"full_attention",
|
| 62 |
+
"full_attention",
|
| 63 |
+
"full_attention",
|
| 64 |
+
"full_attention",
|
| 65 |
+
"full_attention",
|
| 66 |
"full_attention"
|
| 67 |
],
|
| 68 |
"max_position_embeddings": 8192,
|
| 69 |
+
"max_window_layers": 48,
|
| 70 |
+
"mlp_type": "squared_relu",
|
| 71 |
"model_name": "test_checkpoint",
|
| 72 |
"model_type": "qwen3",
|
| 73 |
+
"n_layer": 48,
|
| 74 |
"num_attention_heads": 16,
|
| 75 |
+
"num_hidden_layers": 48,
|
| 76 |
"num_key_value_heads": 4,
|
| 77 |
"pad_token_id": 50034,
|
| 78 |
+
"resid_lambda_end": 1.05,
|
| 79 |
+
"resid_lambda_init": 1.15,
|
| 80 |
+
"resid_lambda_init_end": 1.05,
|
| 81 |
+
"resid_lambda_init_start": 1.15,
|
| 82 |
+
"resid_scalar_lr_mult": 0.01,
|
| 83 |
+
"resid_scalar_weight_decay": 0.05,
|
| 84 |
"rms_norm_eps": 1e-06,
|
| 85 |
"rope_parameters": {
|
| 86 |
"rope_theta": 50000,
|
| 87 |
"rope_type": "default"
|
| 88 |
},
|
| 89 |
+
"scalar_lr": 0.5,
|
| 90 |
"sliding_window": null,
|
| 91 |
+
"squared_relu_activation": "relu2",
|
| 92 |
+
"squared_relu_intermediate_size": 2880,
|
| 93 |
+
"tie_word_embeddings": false,
|
|
|
|
|
|
|
| 94 |
"transformers_version": "5.7.0",
|
| 95 |
"unsloth_version": "2026.4.8",
|
| 96 |
"use_cache": false,
|
|
|
|
| 97 |
"use_sliding_window": false,
|
| 98 |
"vocab_size": 50048,
|
| 99 |
+
"x0_lambda_end": 0.0,
|
| 100 |
+
"x0_lambda_init": 0.02,
|
| 101 |
+
"x0_lambda_init_end": 0.05,
|
| 102 |
+
"x0_lambda_init_start": 0.2,
|
| 103 |
+
"x0_scalar_weight_decay": 0.0
|
| 104 |
}
|
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f53d74af2b3082df05a025c64c68722ca660725afe94f4ae6de06107074aea1
|
| 3 |
+
size 1151039640
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc43251426c01c5194817d1ba92cdf96daaad2adc64751ea1aef393a6abc73b4
|
| 3 |
+
size 1845917173
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14645
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe5ceb4c5544b6dc38fdd0f65e3d1e312afea764e312ae37fab4d14e1151e068
|
| 3 |
size 14645
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c38cbc81da7001df5721d532f7ec63029b08f4cd8a871e76dff5146ee8c29f4
|
| 3 |
+
size 1529
|
last-checkpoint/trainer_state.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
last-checkpoint/training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5777
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b350586eae4abc083bd0fbabe256a8a042109d3a895c5dbd482bedadc195db10
|
| 3 |
size 5777
|