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 390
Browse files- README.md +2 -2
- config.json +1 -13
README.md
CHANGED
|
@@ -4,8 +4,8 @@ model_name: experimental2
|
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
- trl
|
| 7 |
-
- unsloth
|
| 8 |
- sft
|
|
|
|
| 9 |
licence: license
|
| 10 |
---
|
| 11 |
|
|
@@ -27,7 +27,7 @@ print(output["generated_text"])
|
|
| 27 |
|
| 28 |
## Training procedure
|
| 29 |
|
| 30 |
-
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/batuhan409/huggingface/runs/
|
| 31 |
|
| 32 |
|
| 33 |
This model was trained with SFT.
|
|
|
|
| 4 |
tags:
|
| 5 |
- generated_from_trainer
|
| 6 |
- trl
|
|
|
|
| 7 |
- sft
|
| 8 |
+
- unsloth
|
| 9 |
licence: license
|
| 10 |
---
|
| 11 |
|
|
|
|
| 27 |
|
| 28 |
## Training procedure
|
| 29 |
|
| 30 |
+
[<img src="https://raw.githubusercontent.com/wandb/assets/main/wandb-github-badge-28.svg" alt="Visualize in Weights & Biases" width="150" height="24"/>](https://wandb.ai/batuhan409/huggingface/runs/h8b0mm7w)
|
| 31 |
|
| 32 |
|
| 33 |
This model was trained with SFT.
|
config.json
CHANGED
|
@@ -75,18 +75,11 @@
|
|
| 75 |
"num_hidden_layers": 48,
|
| 76 |
"num_key_value_heads": 4,
|
| 77 |
"pad_token_id": 50034,
|
| 78 |
-
"resid_lambda_init_end": 1.05,
|
| 79 |
-
"resid_lambda_init_start": 1.15,
|
| 80 |
-
"resid_lambda_max": 1.25,
|
| 81 |
-
"resid_lambda_min": 0.75,
|
| 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,
|
|
@@ -95,10 +88,5 @@
|
|
| 95 |
"unsloth_version": "2026.4.8",
|
| 96 |
"use_cache": false,
|
| 97 |
"use_sliding_window": false,
|
| 98 |
-
"vocab_size": 50048
|
| 99 |
-
"x0_lambda_init_end": 0.05,
|
| 100 |
-
"x0_lambda_init_start": 0.2,
|
| 101 |
-
"x0_mix_max": 0.3,
|
| 102 |
-
"x0_scalar_lr_mult": 0.01,
|
| 103 |
-
"x0_scalar_weight_decay": 0.0
|
| 104 |
}
|
|
|
|
| 75 |
"num_hidden_layers": 48,
|
| 76 |
"num_key_value_heads": 4,
|
| 77 |
"pad_token_id": 50034,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
"rms_norm_eps": 1e-06,
|
| 79 |
"rope_parameters": {
|
| 80 |
"rope_theta": 50000,
|
| 81 |
"rope_type": "default"
|
| 82 |
},
|
|
|
|
| 83 |
"sliding_window": null,
|
| 84 |
"squared_relu_activation": "relu2",
|
| 85 |
"squared_relu_intermediate_size": 2880,
|
|
|
|
| 88 |
"unsloth_version": "2026.4.8",
|
| 89 |
"use_cache": false,
|
| 90 |
"use_sliding_window": false,
|
| 91 |
+
"vocab_size": 50048
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
}
|