Instructions to use WebOrganizer/LM-1b_1x-DCLMFasttext with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use WebOrganizer/LM-1b_1x-DCLMFasttext with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="WebOrganizer/LM-1b_1x-DCLMFasttext")# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("WebOrganizer/LM-1b_1x-DCLMFasttext", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use WebOrganizer/LM-1b_1x-DCLMFasttext with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "WebOrganizer/LM-1b_1x-DCLMFasttext" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "WebOrganizer/LM-1b_1x-DCLMFasttext", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/WebOrganizer/LM-1b_1x-DCLMFasttext
- SGLang
How to use WebOrganizer/LM-1b_1x-DCLMFasttext 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 "WebOrganizer/LM-1b_1x-DCLMFasttext" \ --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": "WebOrganizer/LM-1b_1x-DCLMFasttext", "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 "WebOrganizer/LM-1b_1x-DCLMFasttext" \ --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": "WebOrganizer/LM-1b_1x-DCLMFasttext", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use WebOrganizer/LM-1b_1x-DCLMFasttext with Docker Model Runner:
docker model run hf.co/WebOrganizer/LM-1b_1x-DCLMFasttext
Ctrl+K
- 52.3 kB
- 27.4 kB
- 1.86 kB
- 1.5 MB
- 18.4 kB
- 7.52 MB
- 2.02 kB
- 1.7 MB
- 12.6 kB
- 7.48 MB
- 1.84 kB
- 1.76 MB
- 23.1 kB
- 10.2 MB
- 2.05 kB
- 1.99 MB
- 14.9 kB
- 9.68 MB
- 1.83 kB
- 1.11 MB
- 28.9 kB
- 10.7 MB xet
- 1.83 kB
- 1.11 MB
- 28.3 kB
- 10.5 MB
- 1.87 kB
- 2.09 MB
- 18.2 kB
- 9.17 MB
- 2.01 kB
- 2.37 MB
- 11.3 kB
- 8.97 MB
- 1.82 kB
- 1.49 MB
- 58 kB
- 23.1 MB xet
- 1.96 kB
- 1.69 MB
- 28.4 kB
- 17.4 MB xet
- 1.82 kB
- 747 kB
- 14 kB
- 2.79 MB
- 1.97 kB
- 841 kB
- 8.54 kB
- 2.63 MB