Text Generation
Transformers
Safetensors
English
Chinese
glm5_next
image-text-to-text
conversational
8-bit precision
modelopt
Instructions to use local-inference-lab/GLM-5.3-Flash-NVFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use local-inference-lab/GLM-5.3-Flash-NVFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="local-inference-lab/GLM-5.3-Flash-NVFP4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("local-inference-lab/GLM-5.3-Flash-NVFP4") model = AutoModelForMultimodalLM.from_pretrained("local-inference-lab/GLM-5.3-Flash-NVFP4", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use local-inference-lab/GLM-5.3-Flash-NVFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "local-inference-lab/GLM-5.3-Flash-NVFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "local-inference-lab/GLM-5.3-Flash-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/local-inference-lab/GLM-5.3-Flash-NVFP4
- SGLang
How to use local-inference-lab/GLM-5.3-Flash-NVFP4 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 "local-inference-lab/GLM-5.3-Flash-NVFP4" \ --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": "local-inference-lab/GLM-5.3-Flash-NVFP4", "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 "local-inference-lab/GLM-5.3-Flash-NVFP4" \ --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": "local-inference-lab/GLM-5.3-Flash-NVFP4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use local-inference-lab/GLM-5.3-Flash-NVFP4 with Docker Model Runner:
docker model run hf.co/local-inference-lab/GLM-5.3-Flash-NVFP4
File size: 2,233 Bytes
9482833 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | {
"max_length": null,
"max_new_tokens": null,
"min_length": null,
"min_new_tokens": null,
"early_stopping": null,
"max_time": null,
"stop_strings": null,
"do_sample": null,
"num_beams": null,
"use_mtp": null,
"use_cache": true,
"cache_implementation": null,
"cache_config": null,
"max_cache_len": null,
"temperature": null,
"top_k": null,
"top_p": null,
"min_p": null,
"top_h": null,
"typical_p": null,
"epsilon_cutoff": null,
"eta_cutoff": null,
"repetition_penalty": null,
"encoder_repetition_penalty": null,
"length_penalty": null,
"no_repeat_ngram_size": null,
"bad_words_ids": null,
"renormalize_logits": null,
"forced_bos_token_id": null,
"forced_eos_token_id": null,
"remove_invalid_values": null,
"exponential_decay_length_penalty": null,
"suppress_tokens": null,
"begin_suppress_tokens": null,
"sequence_bias": null,
"token_healing": null,
"guidance_scale": null,
"watermarking_config": null,
"num_return_sequences": null,
"output_attentions": false,
"output_hidden_states": false,
"output_scores": null,
"output_logits": null,
"return_dict_in_generate": null,
"pad_token_id": 154820,
"bos_token_id": null,
"eos_token_id": [
154820,
154827,
154829
],
"encoder_no_repeat_ngram_size": null,
"decoder_start_token_id": null,
"is_assistant": null,
"num_assistant_tokens": null,
"num_assistant_tokens_schedule": null,
"assistant_confidence_threshold": null,
"prompt_lookup_num_tokens": null,
"max_matching_ngram_size": null,
"assistant_early_exit": null,
"assistant_lookbehind": null,
"target_lookbehind": null,
"assistant_ensemble_weight": null,
"speculation_type": null,
"compile_config": null,
"disable_compile": null,
"continuous_batching_config": null,
"low_memory": null,
"penalty_alpha": null,
"dola_layers": null,
"diversity_penalty": null,
"num_beam_groups": null,
"constraints": null,
"force_words_ids": null,
"prefill_chunk_size": null,
"_from_model_config": true,
"transformers_version": "5.16.1"
} |