Instructions to use BigSalmon/DefinitionsSynonyms1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BigSalmon/DefinitionsSynonyms1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BigSalmon/DefinitionsSynonyms1")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BigSalmon/DefinitionsSynonyms1") model = AutoModelForCausalLM.from_pretrained("BigSalmon/DefinitionsSynonyms1") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use BigSalmon/DefinitionsSynonyms1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BigSalmon/DefinitionsSynonyms1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BigSalmon/DefinitionsSynonyms1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/BigSalmon/DefinitionsSynonyms1
- SGLang
How to use BigSalmon/DefinitionsSynonyms1 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 "BigSalmon/DefinitionsSynonyms1" \ --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": "BigSalmon/DefinitionsSynonyms1", "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 "BigSalmon/DefinitionsSynonyms1" \ --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": "BigSalmon/DefinitionsSynonyms1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use BigSalmon/DefinitionsSynonyms1 with Docker Model Runner:
docker model run hf.co/BigSalmon/DefinitionsSynonyms1
| given a definition, it will generate its corresponding word. there are several formats you can do it in: | |
| ``` | |
| part of speech- verb | |
| definition: grow less in intensity or degree | |
| ex. rather than leave immediately and be drenched, they waited for the storm to ________ | |
| synonyms: subside; moderate; decrease | |
| antonyms: increase | |
| word: abate | |
| ``` | |
| ``` | |
| [adjective] | |
| skeptical, disbelieving | |
| Her eyes widened _____ly at the shocking news. | |
| word: incredulous | |
| ``` | |
| ``` | |
| the money or other means needed for a particular purpose | |
| wordy: wherewithal | |
| ``` | |
| you can also fill in the blank: | |
| ``` | |
| due to the relentless pursuit of excellence, the [blank] of the firm is unquestioned [sep] preeminence [answer] | |
| the hotel chain has [blank] its logo in an effort to appeal to younger travelers [sep] redesigned [answer] | |
| ``` | |
| to generate definitions, too: | |
| ``` | |
| harass | (v.) to disturb, worry; to trouble by repeated attacks | |
| syn: annoy, pester, bedevil, beleaguer | |
| inhibit | (v.) to restrain or hold back; to hinder or arrest; to prohibit | |
| syn: repress, check, suppress | |
| ant: foster, promote, expedite, facilitate | |
| ``` | |
| informal definitions: | |
| ``` | |
| synonyms: digression, extraneous, tangential. | |
| description: when something is irrelevant but mentioned anyways. | |
| *** | |
| synonyms: botched, fumbled, was unequal to the task, did not rise to the occasion. | |
| description: did a really bad job at handling something. | |
| ``` | |
| ``` | |
| description: did a really bad job at handling something. | |
| synonyms: botched, fumbled, was unequal to the task, did not rise to the occasion. | |
| *** | |
| description: when something is irrelevant but mentioned anyways. | |
| synonyms: digression, extraneous, tangential. | |
| ``` |