Text Generation
Transformers
Safetensors
English
glm4_moe_lite
text-generation-inference
unsloth
conversational
Instructions to use tejeshbhalla/GLM-FLASH-TMT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tejeshbhalla/GLM-FLASH-TMT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tejeshbhalla/GLM-FLASH-TMT") 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("tejeshbhalla/GLM-FLASH-TMT") model = AutoModelForCausalLM.from_pretrained("tejeshbhalla/GLM-FLASH-TMT", 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 tejeshbhalla/GLM-FLASH-TMT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tejeshbhalla/GLM-FLASH-TMT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tejeshbhalla/GLM-FLASH-TMT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tejeshbhalla/GLM-FLASH-TMT
- SGLang
How to use tejeshbhalla/GLM-FLASH-TMT 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 "tejeshbhalla/GLM-FLASH-TMT" \ --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": "tejeshbhalla/GLM-FLASH-TMT", "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 "tejeshbhalla/GLM-FLASH-TMT" \ --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": "tejeshbhalla/GLM-FLASH-TMT", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use tejeshbhalla/GLM-FLASH-TMT with Docker Model Runner:
docker model run hf.co/tejeshbhalla/GLM-FLASH-TMT
Commit History
-
(Trained with Unsloth)
Verified signature5ec3782 -
(Trained with Unsloth)
Verified signaturea928054 -
(Trained with Unsloth)
Verified signaturec030074 -
(Trained with Unsloth)
Verified signaturea57f112 -
(Trained with Unsloth)
Verified signature32d995e -
(Trained with Unsloth)
Verified signaturee9aa5cc -
(Trained with Unsloth)
Verified signature56410ae -
(Trained with Unsloth)
Verified signature06fa80b -
(Trained with Unsloth)
Verified signatureacebdac -
(Trained with Unsloth)
Verified signature7685129 -
(Trained with Unsloth)
Verified signaturee16bf83 -
(Trained with Unsloth)
Verified signaturee793e79 -
(Trained with Unsloth)
Verified signature5aaa16e -
(Trained with Unsloth)
Verified signatured6d03b9 -
(Trained with Unsloth)
Verified signature14bd967 -
(Trained with Unsloth)
Verified signature57ccd80 -
(Trained with Unsloth)
Verified signature8623c9d -
(Trained with Unsloth)
Verified signature22527b8 -
(Trained with Unsloth)
Verified signaturea2de48f -
(Trained with Unsloth)
Verified signature8cb5618 -
(Trained with Unsloth)
Verified signature286fe44 -
(Trained with Unsloth)
Verified signature3c1fdef -
(Trained with Unsloth)
Verified signature6a6b78f -
(Trained with Unsloth)
Verified signaturea793b7e -
(Trained with Unsloth)
Verified signaturec69d10a -
(Trained with Unsloth)
Verified signatureeb41edb -
(Trained with Unsloth)
Verified signaturedbeb7ac -
(Trained with Unsloth)
Verified signatureb629f3e -
(Trained with Unsloth)
Verified signaturede5486f -
(Trained with Unsloth)
Verified signature3f2566c -
(Trained with Unsloth)
Verified signature9f2c7d8 -
(Trained with Unsloth)
Verified signature9f163d6 -
(Trained with Unsloth)
Verified signatured3eab20 -
(Trained with Unsloth)
Verified signatureb571a0c -
(Trained with Unsloth)
Verified signaturedf95172 -
(Trained with Unsloth)
Verified signature7023a5a -
(Trained with Unsloth)
Verified signature1a7bff3 -
(Trained with Unsloth)
Verified signature3b657c1 -
(Trained with Unsloth)
Verified signature48e4d51 -
(Trained with Unsloth)
Verified signatureb2f0cf0 -
(Trained with Unsloth)
Verified signature286e1b3 -
(Trained with Unsloth)
Verified signature3ca06ca -
(Trained with Unsloth)
Verified signature2005d81 -
(Trained with Unsloth)
Verified signature0423d3f -
(Trained with Unsloth)
Verified signaturea4e1cda -
(Trained with Unsloth)
Verified signature9f69e0a -
(Trained with Unsloth)
Verified signature5a74b34 -
(Trained with Unsloth)
Verified signature5f58ceb -
(Trained with Unsloth)
Verified signatureb8a1e8f -
(Trained with Unsloth)
Verified signaturea76085f