Instructions to use umm-maybe/ey_lw_posts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use umm-maybe/ey_lw_posts with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="umm-maybe/ey_lw_posts")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("umm-maybe/ey_lw_posts") model = AutoModelForCausalLM.from_pretrained("umm-maybe/ey_lw_posts", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use umm-maybe/ey_lw_posts with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "umm-maybe/ey_lw_posts" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "umm-maybe/ey_lw_posts", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/umm-maybe/ey_lw_posts
- SGLang
How to use umm-maybe/ey_lw_posts 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 "umm-maybe/ey_lw_posts" \ --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": "umm-maybe/ey_lw_posts", "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 "umm-maybe/ey_lw_posts" \ --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": "umm-maybe/ey_lw_posts", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use umm-maybe/ey_lw_posts with Docker Model Runner:
docker model run hf.co/umm-maybe/ey_lw_posts
Commit History
-
Adding `safetensors` variant of this model
This is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.73a38a6
-
Update model
445415e
-
Delete vocab.json:Zone.Identifier
5f54bdb -
Delete training_args.bin:Zone.Identifier
71e2e70 -
Delete tokenizer_config.json:Zone.Identifier
770dce5 -
Delete special_tokens_map.json:Zone.Identifier
037fe83 -
Delete pytorch_model.bin:Zone.Identifier
47685ee -
Delete model_args.json:Zone.Identifier
6ede3c1 -
Delete merges.txt:Zone.Identifier
4d40e8f -
Delete eval_results.txt:Zone.Identifier
00e1a29 -
Delete config.json:Zone.Identifier
0471502 -
Add model files
e0f0d39 -
initial commit
22dfa21