Text Generation
Transformers
Safetensors
English
babylm
babylm-2026
mixture-of-experts
msit
xpertgpt
custom_code
Instructions to use anonym5035/temp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anonym5035/temp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anonym5035/temp", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("anonym5035/temp", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anonym5035/temp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anonym5035/temp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anonym5035/temp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/anonym5035/temp
- SGLang
How to use anonym5035/temp 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 "anonym5035/temp" \ --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": "anonym5035/temp", "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 "anonym5035/temp" \ --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": "anonym5035/temp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use anonym5035/temp with Docker Model Runner:
docker model run hf.co/anonym5035/temp
Soham Jain
Update strict-small architecture files (sliding window [64, 16, 8, 4], ln3, ln_post_moe, no res3)
3a7a00c verified | from transformers import PretrainedConfig | |
| class XpertGPTConfig(PretrainedConfig): | |
| model_type = "xpertgpt" | |
| def __init__( | |
| self, | |
| vocab_size: int = 16384, | |
| block_size: int = 512, | |
| d_model: int = 256, | |
| d_thin: int = 384, | |
| num_layers: int = 6, | |
| num_blocks: int = 4, | |
| capacity_factor: float = 2.0, | |
| dropout: float = 0.1, | |
| **kwargs | |
| ): | |
| kwargs.setdefault("is_decoder", True) | |
| kwargs.setdefault("bos_token_id", 2) # [CLS] | |
| kwargs.setdefault("eos_token_id", 3) # [SEP] | |
| kwargs.setdefault("pad_token_id", 1) # [PAD] | |
| self.vocab_size = vocab_size | |
| self.block_size = block_size | |
| self.d_model = d_model | |
| self.d_thin = d_thin | |
| self.num_layers = num_layers | |
| self.num_blocks = num_blocks | |
| self.capacity_factor = capacity_factor | |
| self.dropout = dropout | |
| # Attribute parity for classification heads | |
| self.hidden_size = d_model | |
| self.num_hidden_layers = num_layers | |
| super().__init__(**kwargs) | |