Instructions to use MemTensor/MemT-1.0-Pro with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MemTensor/MemT-1.0-Pro with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MemTensor/MemT-1.0-Pro", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("MemTensor/MemT-1.0-Pro", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MemTensor/MemT-1.0-Pro with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MemTensor/MemT-1.0-Pro" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "MemTensor/MemT-1.0-Pro", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MemTensor/MemT-1.0-Pro
- SGLang
How to use MemTensor/MemT-1.0-Pro 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 "MemTensor/MemT-1.0-Pro" \ --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": "MemTensor/MemT-1.0-Pro", "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 "MemTensor/MemT-1.0-Pro" \ --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": "MemTensor/MemT-1.0-Pro", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MemTensor/MemT-1.0-Pro with Docker Model Runner:
docker model run hf.co/MemTensor/MemT-1.0-Pro
Add files using upload-large-folder tool
Browse files- assets/MemT-1.0.png +3 -0
- assets/application.png +3 -0
- assets/figure_performance.png +3 -0
- assets/memt-arc.jpg +3 -0
- model-00025-of-00226.safetensors +3 -0
- model-00053-of-00226.safetensors +3 -0
- model-00074-of-00226.safetensors +3 -0
- model-00123-of-00226.safetensors +3 -0
- model-00154-of-00226.safetensors +3 -0
- model-00191-of-00226.safetensors +3 -0
- model-00192-of-00226.safetensors +3 -0
- model-00219-of-00226.safetensors +3 -0
assets/MemT-1.0.png
ADDED
|
Git LFS Details
|
assets/application.png
ADDED
|
Git LFS Details
|
assets/figure_performance.png
ADDED
|
Git LFS Details
|
assets/memt-arc.jpg
ADDED
|
Git LFS Details
|
model-00025-of-00226.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6025f91271129e193bd4b2c0509a60d01533286349103d794e3fab88c155c373
|
| 3 |
+
size 4991252776
|
model-00053-of-00226.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b5f7186f4e7fab4905e3ab6be840cf4d0d172de109e17d955ae3561195f85c1
|
| 3 |
+
size 4991252840
|
model-00074-of-00226.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4be5c40104fdbac360013c0df6dc8750e1945b20e60cb01ebb30a60e5849a73
|
| 3 |
+
size 4987305872
|
model-00123-of-00226.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a72fb8d5d7b5b5b7b397c798fe6ef668afa4b5ab8409d33f371ec3fa4dd1b1b7
|
| 3 |
+
size 4991252840
|
model-00154-of-00226.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f5fc87a8aa05105299bd58f6112d24a1f663e8bd5b1cbb4ed151c9c1819c4d1d
|
| 3 |
+
size 4991252840
|
model-00191-of-00226.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:58f250008e98e91064b51f38fffaa02e8a877bd48da1a2dc21da0fd67417413c
|
| 3 |
+
size 4991252840
|
model-00192-of-00226.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:308a11233605a05e4390d9def0353c4dad7aafe2b6e52d1847c514a487559926
|
| 3 |
+
size 4991252840
|
model-00219-of-00226.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6bca6430864ccaabd05c0cb9be8ded355ba146585a26e4695139b024310238be
|
| 3 |
+
size 4991253080
|