Instructions to use OpenMOSS-Team/SciThinker-30B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenMOSS-Team/SciThinker-30B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="OpenMOSS-Team/SciThinker-30B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("OpenMOSS-Team/SciThinker-30B") model = AutoModelForCausalLM.from_pretrained("OpenMOSS-Team/SciThinker-30B") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use OpenMOSS-Team/SciThinker-30B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "OpenMOSS-Team/SciThinker-30B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenMOSS-Team/SciThinker-30B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/OpenMOSS-Team/SciThinker-30B
- SGLang
How to use OpenMOSS-Team/SciThinker-30B 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 "OpenMOSS-Team/SciThinker-30B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenMOSS-Team/SciThinker-30B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "OpenMOSS-Team/SciThinker-30B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "OpenMOSS-Team/SciThinker-30B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use OpenMOSS-Team/SciThinker-30B with Docker Model Runner:
docker model run hf.co/OpenMOSS-Team/SciThinker-30B
Add files using upload-large-folder tool
Browse files- model-00001-of-00013.safetensors +1 -1
- model-00003-of-00013.safetensors +1 -1
- model-00004-of-00013.safetensors +1 -1
- model-00005-of-00013.safetensors +1 -1
- model-00006-of-00013.safetensors +1 -1
- model-00007-of-00013.safetensors +1 -1
- model-00008-of-00013.safetensors +1 -1
- model-00009-of-00013.safetensors +1 -1
- model-00010-of-00013.safetensors +1 -1
- model-00011-of-00013.safetensors +1 -1
- model-00012-of-00013.safetensors +1 -1
- model-00013-of-00013.safetensors +1 -1
model-00001-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997189144
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8d5798a288d24712ca6ee0bbacbcb9b6363cdea0dfd7fae183f26833ff5f5c8d
|
| 3 |
size 4997189144
|
model-00003-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997742176
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb1b987d4188f36ca4af331af062d2fa430af8511c87064dcd81f096bc4031eb
|
| 3 |
size 4997742176
|
model-00004-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c13c7d43aea5204cf963be068731e3702502e884b4e549898705837b0686d4d
|
| 3 |
size 4997743160
|
model-00005-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:539002cd2cfeb939e4160f4b94cce21a1a33142b84bc4dfeed9a8053129f026f
|
| 3 |
size 4997743160
|
model-00006-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b18df50b9c8c282c68db5ad029ee8ebd4cc35551059f2e5a87f6a3b3ffe99df6
|
| 3 |
size 4997743160
|
model-00007-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2960d373c69406d51c21c41eb89e505ae6dbaecae5bceb1a98a52b09eb1e15d3
|
| 3 |
size 4997743160
|
model-00008-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eea978a48a1b49145e4742daf6122bc39b96bc4c3e3083fc59a72a7812b3a347
|
| 3 |
size 4997743160
|
model-00009-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:90df44fd16ccde1bd8a83b94599078f6dcaf5aa7ae95999c1387b3fb9a2cf662
|
| 3 |
size 4997743160
|
model-00010-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:45d81dad91b9400e85b27aa99cdec8bef2d996da3d146513d922ee367cf858e6
|
| 3 |
size 4997743160
|
model-00011-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4408a1144b501095bf089dff751a778ed57027cac5540d9ca2032729f5989f93
|
| 3 |
size 4997743160
|
model-00012-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4997743160
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8011b83a25288df4565d76db62d511e57e87562e8b27ca0b69035dda465d539
|
| 3 |
size 4997743160
|
model-00013-of-00013.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1094216064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c450a8ab3be2b6f6afa41a0ffbe99d765b233072484edb2a99223ec4d96c74e
|
| 3 |
size 1094216064
|