Text Generation
Transformers
PyTorch
bart
mass-spectrometry
GC-EI-MS
Transformer
molecular-structure-reconstruction
compound-identification
Instructions to use MS-ML/SpecTUS_pretrained_only with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MS-ML/SpecTUS_pretrained_only with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MS-ML/SpecTUS_pretrained_only")# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("MS-ML/SpecTUS_pretrained_only") model = AutoModelForSeq2SeqLM.from_pretrained("MS-ML/SpecTUS_pretrained_only") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use MS-ML/SpecTUS_pretrained_only with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MS-ML/SpecTUS_pretrained_only" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MS-ML/SpecTUS_pretrained_only", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/MS-ML/SpecTUS_pretrained_only
- SGLang
How to use MS-ML/SpecTUS_pretrained_only 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 "MS-ML/SpecTUS_pretrained_only" \ --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": "MS-ML/SpecTUS_pretrained_only", "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 "MS-ML/SpecTUS_pretrained_only" \ --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": "MS-ML/SpecTUS_pretrained_only", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use MS-ML/SpecTUS_pretrained_only with Docker Model Runner:
docker model run hf.co/MS-ML/SpecTUS_pretrained_only
f7b765a60ed1ae4c57ca2a62d4f3e07633c1db3291e9c204e304554f3f8fae98
Browse files- config.json +0 -1
- pytorch_model.bin +1 -1
- rng_state.pth +2 -2
- scheduler.pt +1 -1
- trainer_state.json +0 -0
- training_args.bin +1 -1
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "../checkpoints/pretrain_clean/sandy-star-569_exp7_custom_rassp_neims/checkpoint-112000",
|
| 3 |
"activation_dropout": 0.0,
|
| 4 |
"activation_function": "gelu",
|
| 5 |
"architectures": [
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"activation_dropout": 0.0,
|
| 3 |
"activation_function": "gelu",
|
| 4 |
"architectures": [
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1416249109
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4f8d487a51ab787dd2353253c16a71170c1843c612684ec884a0c9a5c20c13c4
|
| 3 |
size 1416249109
|
rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b224e88b3b8030f12a8a39f25553343753b2eaa9254029c6e4c81a0fec99d092
|
| 3 |
+
size 14511
|
scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 627
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8218bee5b04ae447b8f040e63f3deeb69e544fd48d72c70793a0c33691ea3b72
|
| 3 |
size 627
|
trainer_state.json
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4283
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2cfe7ae37f84d703ef53d41db5ab1dd03d554c69029ddd52b7ede4d6b5a0cb4
|
| 3 |
size 4283
|