Text Generation
Transformers
Safetensors
metis17
metis
base-model
pretrained
mixture-of-experts
mamba
custom_code
Instructions to use Lernex/Metis-1.7-Logos-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lernex/Metis-1.7-Logos-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lernex/Metis-1.7-Logos-Base", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Lernex/Metis-1.7-Logos-Base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Lernex/Metis-1.7-Logos-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lernex/Metis-1.7-Logos-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lernex/Metis-1.7-Logos-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Lernex/Metis-1.7-Logos-Base
- SGLang
How to use Lernex/Metis-1.7-Logos-Base 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 "Lernex/Metis-1.7-Logos-Base" \ --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": "Lernex/Metis-1.7-Logos-Base", "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 "Lernex/Metis-1.7-Logos-Base" \ --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": "Lernex/Metis-1.7-Logos-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Lernex/Metis-1.7-Logos-Base with Docker Model Runner:
docker model run hf.co/Lernex/Metis-1.7-Logos-Base
Download NGRAM_CANONICAL_IDS.uint32 from Lernex/Metis-1.7-Logos-Base: direct link, hf CLI and curl.
- Browser
- Download file 524 kB
-
https://huggingface.co/Lernex/Metis-1.7-Logos-Base/resolve/main/NGRAM_CANONICAL_IDS.uint32
- Command line
-
hf download hf://Lernex/Metis-1.7-Logos-Base/NGRAM_CANONICAL_IDS.uint32
-
curl -L -o NGRAM_CANONICAL_IDS.uint32 https://huggingface.co/Lernex/Metis-1.7-Logos-Base/resolve/main/NGRAM_CANONICAL_IDS.uint32
524 kB
- Xet hash:
- 2e5ac19c2810f7f8d34fbf7bfaf9d0bb955f4eaeb066856b191d609f55cfad5b
- Size of remote file:
- 524 kB
- SHA256:
- 6e9b98c37149dc81caeb09657a10965aec6ccecc85db74cdfb959cd32627b17f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.