Text Generation
Transformers
Safetensors
glm_moe_dsa
qfs
fixture
random-init
cpu
reproducibility
random-architecture-fixture
testing
random-initialization
bfloat16
Instructions to use malaiwah/glm-moe-dsa-tiny-random-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use malaiwah/glm-moe-dsa-tiny-random-bf16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="malaiwah/glm-moe-dsa-tiny-random-bf16")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("malaiwah/glm-moe-dsa-tiny-random-bf16") model = AutoModelForCausalLM.from_pretrained("malaiwah/glm-moe-dsa-tiny-random-bf16", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use malaiwah/glm-moe-dsa-tiny-random-bf16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "malaiwah/glm-moe-dsa-tiny-random-bf16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "malaiwah/glm-moe-dsa-tiny-random-bf16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/malaiwah/glm-moe-dsa-tiny-random-bf16
- SGLang
How to use malaiwah/glm-moe-dsa-tiny-random-bf16 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 "malaiwah/glm-moe-dsa-tiny-random-bf16" \ --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": "malaiwah/glm-moe-dsa-tiny-random-bf16", "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 "malaiwah/glm-moe-dsa-tiny-random-bf16" \ --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": "malaiwah/glm-moe-dsa-tiny-random-bf16", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use malaiwah/glm-moe-dsa-tiny-random-bf16 with Docker Model Runner:
docker model run hf.co/malaiwah/glm-moe-dsa-tiny-random-bf16
Download qfs-source.json from malaiwah/glm-moe-dsa-tiny-random-bf16: direct link, hf CLI and curl.
- Browser
- Download file 655 Bytes
-
https://huggingface.co/malaiwah/glm-moe-dsa-tiny-random-bf16/resolve/main/qfs-source.json
- Command line
-
hf download hf://malaiwah/glm-moe-dsa-tiny-random-bf16/qfs-source.json
-
curl -L -o qfs-source.json https://huggingface.co/malaiwah/glm-moe-dsa-tiny-random-bf16/resolve/main/qfs-source.json
655 Bytes
| { | |
| "repository": "https://github.com/malaiwah/quant-fidelity-suite", | |
| "revision": "a903cddb078c2eda8c65d6e6c875a09ac932df49", | |
| "source_files": { | |
| "bin/fidelity/dscompare.py": "4a53f735e1e3fb8bd739854451b57f34e8369bffa9fd4f7b7fd935fb2e7d52df", | |
| "bin/fidelity/dsvalidate.py": "a9d6cd57e801e3ef044a37635e24518c83dbc6d1ec8a4c0b4b5d1b24483ca8d1", | |
| "bin/fidelity/panel.py": "0bf78fca76289920e0dc10d58082f42f24f4f2db6e0ecde61daefa4c22de286d", | |
| "bin/fidelity_dataset.py": "ac62b63bbfde67e4d5cacecf9cd417193c50f417a6749cc15ee6f1610c153a4e", | |
| "engines/tools/hf_capture.py": "200ba12ca74fb97531307965cbbaa5c10553a5c26e008e524ea2d8aecb005b95" | |
| } | |
| } | |