Instructions to use jumelet/test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jumelet/test with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jumelet/test", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jumelet/test") model = AutoModelForCausalLM.from_pretrained("jumelet/test", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jumelet/test with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jumelet/test" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jumelet/test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jumelet/test
- SGLang
How to use jumelet/test 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 "jumelet/test" \ --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": "jumelet/test", "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 "jumelet/test" \ --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": "jumelet/test", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jumelet/test with Docker Model Runner:
docker model run hf.co/jumelet/test
| { | |
| "version": "1.0", | |
| "truncation": null, | |
| "padding": null, | |
| "added_tokens": [ | |
| { | |
| "id": 0, | |
| "content": "<unk>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 1, | |
| "content": "<pad>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 2, | |
| "content": "<mask>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| }, | |
| { | |
| "id": 3, | |
| "content": "<bos>", | |
| "single_word": false, | |
| "lstrip": false, | |
| "rstrip": false, | |
| "normalized": false, | |
| "special": true | |
| } | |
| ], | |
| "normalizer": null, | |
| "pre_tokenizer": { | |
| "type": "WhitespaceSplit" | |
| }, | |
| "post_processor": { | |
| "type": "TemplateProcessing", | |
| "single": [ | |
| { | |
| "SpecialToken": { | |
| "id": "<bos>", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "Sequence": { | |
| "id": "A", | |
| "type_id": 0 | |
| } | |
| } | |
| ], | |
| "pair": [ | |
| { | |
| "Sequence": { | |
| "id": "A", | |
| "type_id": 0 | |
| } | |
| }, | |
| { | |
| "Sequence": { | |
| "id": "B", | |
| "type_id": 1 | |
| } | |
| } | |
| ], | |
| "special_tokens": { | |
| "<bos>": { | |
| "id": "<bos>", | |
| "ids": [ | |
| 3 | |
| ], | |
| "tokens": [ | |
| "<bos>" | |
| ] | |
| } | |
| } | |
| }, | |
| "decoder": null, | |
| "model": { | |
| "type": "WordLevel", | |
| "vocab": { | |
| "<unk>": 0, | |
| "<pad>": 1, | |
| "<mask>": 2, | |
| "<bos>": 3, | |
| ".": 4, | |
| "the": 5, | |
| ",": 6, | |
| "and": 7, | |
| "was": 8, | |
| "he": 9, | |
| "in": 10, | |
| "had": 11, | |
| "n<apostrophe>t": 12, | |
| "it": 13, | |
| "ditch": 14, | |
| "a": 15, | |
| "Bible": 16, | |
| "cows": 17, | |
| "to": 18, | |
| "They": 19, | |
| "class": 20, | |
| "But": 21, | |
| "by": 22, | |
| "knew": 23, | |
| "of": 24, | |
| ":": 25, | |
| "Oh": 26, | |
| "did": 27, | |
| "finally": 28, | |
| "mattered": 29, | |
| "they": 30, | |
| "He": 31, | |
| "happened": 32, | |
| "here": 33, | |
| "there": 34, | |
| "<apostrophe>s": 35, | |
| "The": 36, | |
| "Today": 37, | |
| "Tuesday": 38, | |
| "care": 39, | |
| "justice": 40, | |
| "now": 41, | |
| "blackened": 42, | |
| "boy": 43, | |
| "child": 44, | |
| "find": 45, | |
| "intended": 46, | |
| "none": 47, | |
| "Because": 48, | |
| "finger": 49, | |
| "fingers": 50, | |
| "sure": 51, | |
| "that": 52, | |
| "told": 53, | |
| "were": 54, | |
| "world": 55, | |
| "darker": 56, | |
| "grass": 57, | |
| "narrowed": 58, | |
| "them": 59, | |
| "virtue": 60, | |
| "And": 61, | |
| "help": 62, | |
| "meant": 63, | |
| "moved": 64, | |
| "not": 65, | |
| "really": 66, | |
| "should": 67, | |
| "eyes": 68, | |
| "his": 69, | |
| "leave": 70, | |
| "quite": 71, | |
| "than": 72, | |
| "what": 73 | |
| }, | |
| "unk_token": "<unk>" | |
| } | |
| } |