Text Generation
Transformers
Safetensors
English
metadiffusion
diffusion-language-model
diffusion
transformer
language-model
autoregressive-conversion
experimental
research
150m
english
Instructions to use CodeSoft/MetaDiffusion-150M-exp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CodeSoft/MetaDiffusion-150M-exp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CodeSoft/MetaDiffusion-150M-exp")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("CodeSoft/MetaDiffusion-150M-exp", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CodeSoft/MetaDiffusion-150M-exp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CodeSoft/MetaDiffusion-150M-exp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CodeSoft/MetaDiffusion-150M-exp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CodeSoft/MetaDiffusion-150M-exp
- SGLang
How to use CodeSoft/MetaDiffusion-150M-exp 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 "CodeSoft/MetaDiffusion-150M-exp" \ --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": "CodeSoft/MetaDiffusion-150M-exp", "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 "CodeSoft/MetaDiffusion-150M-exp" \ --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": "CodeSoft/MetaDiffusion-150M-exp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CodeSoft/MetaDiffusion-150M-exp with Docker Model Runner:
docker model run hf.co/CodeSoft/MetaDiffusion-150M-exp
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,15 +23,6 @@ base_model:
|
|
| 23 |
|
| 24 |
<h1>MetaDiffusion-150M-exp</h1>
|
| 25 |
|
| 26 |
-
<a href="https://hfviewer.com/CodeSoft/MetaDiffusion-150M-exp?utm_source=huggingface&utm_medium=embedded_model_card&utm_campaign=CodeSoft__MetaDiffusion-150M-exp_card&utm_content=embedded_card_open_viewer&from=embedded-model-card" target="_blank" rel="noopener" style="display: inline-block; max-width: 720px; width: 100%;">
|
| 27 |
-
<img
|
| 28 |
-
src="https://hfviewer.com/api/model-og-card.png?source=CodeSoft%2FMetaDiffusion-150M-exp&embed_style=summary-card&v=20260629-og-direct-preview-v1"
|
| 29 |
-
alt="Summary architecture graph card for CodeSoft/MetaDiffusion-150M-exp. Open in hfviewer"
|
| 30 |
-
width="100%"
|
| 31 |
-
style="width: 100%; height: auto; border-radius: 12px; border: 1px solid #e1e4e8; box-shadow: 0 4px 12px rgba(0,0,0,0.08);"
|
| 32 |
-
/>
|
| 33 |
-
</a>
|
| 34 |
-
|
| 35 |
<p>
|
| 36 |
This model is for research and evaluation purposes only. Do not use in production environments.
|
| 37 |
</p>
|
|
|
|
| 23 |
|
| 24 |
<h1>MetaDiffusion-150M-exp</h1>
|
| 25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
<p>
|
| 27 |
This model is for research and evaluation purposes only. Do not use in production environments.
|
| 28 |
</p>
|