Text Generation
Transformers
Safetensors
English
qwen3_moe
text-generation-inference
unsloth
conversational
Instructions to use TOBEAI/model_test4-30B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TOBEAI/model_test4-30B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TOBEAI/model_test4-30B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TOBEAI/model_test4-30B") model = AutoModelForCausalLM.from_pretrained("TOBEAI/model_test4-30B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TOBEAI/model_test4-30B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TOBEAI/model_test4-30B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TOBEAI/model_test4-30B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/TOBEAI/model_test4-30B
- SGLang
How to use TOBEAI/model_test4-30B 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 "TOBEAI/model_test4-30B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TOBEAI/model_test4-30B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "TOBEAI/model_test4-30B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TOBEAI/model_test4-30B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use TOBEAI/model_test4-30B with Docker Model Runner:
docker model run hf.co/TOBEAI/model_test4-30B
Commit History
-
(Trained with Unsloth)
Verified signature6e62e6f -
(Trained with Unsloth)
Verified signature80cc7e2 -
(Trained with Unsloth)
Verified signaturefea5af8 -
(Trained with Unsloth)
Verified signatureda0b441 -
(Trained with Unsloth)
Verified signaturee718e70 -
(Trained with Unsloth)
Verified signature73d1f11 -
(Trained with Unsloth)
Verified signaturecdd7295 -
(Trained with Unsloth)
Verified signaturebf28565 -
(Trained with Unsloth)
Verified signature4244f06 -
(Trained with Unsloth)
Verified signature344ef91 -
(Trained with Unsloth)
Verified signatureae28fc9 -
(Trained with Unsloth)
Verified signature8ebb248 -
(Trained with Unsloth)
Verified signature3710c47 -
(Trained with Unsloth)
Verified signature89949cd -
(Trained with Unsloth)
Verified signaturec4073af -
(Trained with Unsloth)
Verified signature19ef36e -
(Trained with Unsloth)
Verified signature3b0e146 -
(Trained with Unsloth)
Verified signature4cbd272 -
(Trained with Unsloth)
Verified signaturebe3814d -
(Trained with Unsloth)
Verified signature0234df2 -
(Trained with Unsloth)
Verified signaturee9a843a -
(Trained with Unsloth)
Verified signature083f784 -
(Trained with Unsloth)
Verified signature353e3a6 -
(Trained with Unsloth)
Verified signature56ba7dd -
(Trained with Unsloth)
Verified signatured557fe1 -
(Trained with Unsloth)
Verified signaturef61c77a -
(Trained with Unsloth)
Verified signature2b4b5a2 -
(Trained with Unsloth)
Verified signature4716d4b -
Unsloth Model Card
Verified signature35e9c56 -
initial commit
Verified signature37cb022