Instructions to use noystl/mistral-e2e with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use noystl/mistral-e2e with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="noystl/mistral-e2e")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("noystl/mistral-e2e", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use noystl/mistral-e2e with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "noystl/mistral-e2e" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "noystl/mistral-e2e", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/noystl/mistral-e2e
- SGLang
How to use noystl/mistral-e2e 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 "noystl/mistral-e2e" \ --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": "noystl/mistral-e2e", "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 "noystl/mistral-e2e" \ --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": "noystl/mistral-e2e", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use noystl/mistral-e2e with Docker Model Runner:
docker model run hf.co/noystl/mistral-e2e
Improve model card: Update license and add sample usage
#3
by nielsr HF Staff - opened
This PR improves the model card for the noystl/mistral-e2e model by:
- Updating the
licensemetadata toapache-2.0for greater specificity and alignment with common open-source practices. - Correcting the paper title in the introductory sentence to match the official title: "CHIMERA: A Knowledge Base of Scientific Idea Recombinations for Research Analysis and Ideation".
- Adding a practical "Sample Usage" section, demonstrating how to use the model with the
transformerslibrary to perform recombination extraction, which is the model's primary intended use. This makes it easier for users to get started directly from the Hugging Face Hub.
These changes enhance the accuracy and utility of the model card.