Instructions to use MemTensor/MemT-1.0-Nano with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MemTensor/MemT-1.0-Nano with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MemTensor/MemT-1.0-Nano", 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-Nano", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use MemTensor/MemT-1.0-Nano 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-Nano" # 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-Nano", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MemTensor/MemT-1.0-Nano
- SGLang
How to use MemTensor/MemT-1.0-Nano 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-Nano" \ --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-Nano", "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-Nano" \ --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-Nano", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MemTensor/MemT-1.0-Nano with Docker Model Runner:
docker model run hf.co/MemTensor/MemT-1.0-Nano
Ctrl+K
- assets
- 449 Bytes
- 65 Bytes
- 7.72 kB
- 7.97 kB
- 3.57 kB
- 4.3 kB
- 222 Bytes
- 902 MB xet
- 3.35 MB
- 3.84 GB xet
- 552 MB xet
- 3.36 GB xet
- 3.37 GB xet
- 3.36 GB xet
- 3.96 GB xet
- 1.1 GB xet
- 3.95 GB xet
- 1.1 GB xet
- 3.95 GB xet
- 1.1 GB xet
- 3.41 GB xet
- 1.63 GB xet
- 3.42 GB xet
- 1.63 GB xet
- 3.95 GB xet
- 1.1 GB xet
- 3.95 GB xet
- 1.1 GB xet
- 3.41 GB xet
- 1.63 GB xet
- 3.37 GB xet
- 3.36 GB xet
- 3.37 GB xet
- 2.76 GB xet
- 1.62 GB xet
- 75.2 kB
- 41.9 kB
- 7.09 MB xet
- 12.8 MB xet
- 17 kB
- 6.72 MB