Instructions to use aisingapore/Qwen-SEA-LION-v4-32B-IT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aisingapore/Qwen-SEA-LION-v4-32B-IT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="aisingapore/Qwen-SEA-LION-v4-32B-IT") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("aisingapore/Qwen-SEA-LION-v4-32B-IT") model = AutoModelForCausalLM.from_pretrained("aisingapore/Qwen-SEA-LION-v4-32B-IT", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aisingapore/Qwen-SEA-LION-v4-32B-IT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aisingapore/Qwen-SEA-LION-v4-32B-IT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aisingapore/Qwen-SEA-LION-v4-32B-IT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aisingapore/Qwen-SEA-LION-v4-32B-IT
- SGLang
How to use aisingapore/Qwen-SEA-LION-v4-32B-IT 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 "aisingapore/Qwen-SEA-LION-v4-32B-IT" \ --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": "aisingapore/Qwen-SEA-LION-v4-32B-IT", "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 "aisingapore/Qwen-SEA-LION-v4-32B-IT" \ --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": "aisingapore/Qwen-SEA-LION-v4-32B-IT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use aisingapore/Qwen-SEA-LION-v4-32B-IT with Docker Model Runner:
docker model run hf.co/aisingapore/Qwen-SEA-LION-v4-32B-IT
Update config.json
Browse files- config.json +1 -67
config.json
CHANGED
|
@@ -11,72 +11,6 @@
|
|
| 11 |
"hidden_size": 5120,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
"intermediate_size": 25600,
|
| 14 |
-
"layer_types": [
|
| 15 |
-
"full_attention",
|
| 16 |
-
"full_attention",
|
| 17 |
-
"full_attention",
|
| 18 |
-
"full_attention",
|
| 19 |
-
"full_attention",
|
| 20 |
-
"full_attention",
|
| 21 |
-
"full_attention",
|
| 22 |
-
"full_attention",
|
| 23 |
-
"full_attention",
|
| 24 |
-
"full_attention",
|
| 25 |
-
"full_attention",
|
| 26 |
-
"full_attention",
|
| 27 |
-
"full_attention",
|
| 28 |
-
"full_attention",
|
| 29 |
-
"full_attention",
|
| 30 |
-
"full_attention",
|
| 31 |
-
"full_attention",
|
| 32 |
-
"full_attention",
|
| 33 |
-
"full_attention",
|
| 34 |
-
"full_attention",
|
| 35 |
-
"full_attention",
|
| 36 |
-
"full_attention",
|
| 37 |
-
"full_attention",
|
| 38 |
-
"full_attention",
|
| 39 |
-
"full_attention",
|
| 40 |
-
"full_attention",
|
| 41 |
-
"full_attention",
|
| 42 |
-
"full_attention",
|
| 43 |
-
"full_attention",
|
| 44 |
-
"full_attention",
|
| 45 |
-
"full_attention",
|
| 46 |
-
"full_attention",
|
| 47 |
-
"full_attention",
|
| 48 |
-
"full_attention",
|
| 49 |
-
"full_attention",
|
| 50 |
-
"full_attention",
|
| 51 |
-
"full_attention",
|
| 52 |
-
"full_attention",
|
| 53 |
-
"full_attention",
|
| 54 |
-
"full_attention",
|
| 55 |
-
"full_attention",
|
| 56 |
-
"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 |
-
"full_attention",
|
| 68 |
-
"full_attention",
|
| 69 |
-
"full_attention",
|
| 70 |
-
"full_attention",
|
| 71 |
-
"full_attention",
|
| 72 |
-
"full_attention",
|
| 73 |
-
"full_attention",
|
| 74 |
-
"full_attention",
|
| 75 |
-
"full_attention",
|
| 76 |
-
"full_attention",
|
| 77 |
-
"full_attention",
|
| 78 |
-
"full_attention"
|
| 79 |
-
],
|
| 80 |
"max_position_embeddings": 40960,
|
| 81 |
"max_window_layers": 64,
|
| 82 |
"model_type": "qwen3",
|
|
@@ -89,7 +23,7 @@
|
|
| 89 |
"sliding_window": null,
|
| 90 |
"tie_word_embeddings": false,
|
| 91 |
"torch_dtype": "bfloat16",
|
| 92 |
-
"transformers_version": "4.
|
| 93 |
"use_cache": true,
|
| 94 |
"use_sliding_window": false,
|
| 95 |
"vocab_size": 151936
|
|
|
|
| 11 |
"hidden_size": 5120,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
"intermediate_size": 25600,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
"max_position_embeddings": 40960,
|
| 15 |
"max_window_layers": 64,
|
| 16 |
"model_type": "qwen3",
|
|
|
|
| 23 |
"sliding_window": null,
|
| 24 |
"tie_word_embeddings": false,
|
| 25 |
"torch_dtype": "bfloat16",
|
| 26 |
+
"transformers_version": "4.51.0",
|
| 27 |
"use_cache": true,
|
| 28 |
"use_sliding_window": false,
|
| 29 |
"vocab_size": 151936
|