Text Generation
Transformers
Safetensors
English
mistral
Not-For-All-Audiences
conversational
text-generation-inference
Instructions to use Lexic0n/Mistral_7B-Open_Hermes-NSFWV1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lexic0n/Mistral_7B-Open_Hermes-NSFWV1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lexic0n/Mistral_7B-Open_Hermes-NSFWV1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Lexic0n/Mistral_7B-Open_Hermes-NSFWV1") model = AutoModelForCausalLM.from_pretrained("Lexic0n/Mistral_7B-Open_Hermes-NSFWV1", device_map="auto") 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 Settings
- vLLM
How to use Lexic0n/Mistral_7B-Open_Hermes-NSFWV1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lexic0n/Mistral_7B-Open_Hermes-NSFWV1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lexic0n/Mistral_7B-Open_Hermes-NSFWV1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Lexic0n/Mistral_7B-Open_Hermes-NSFWV1
- SGLang
How to use Lexic0n/Mistral_7B-Open_Hermes-NSFWV1 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 "Lexic0n/Mistral_7B-Open_Hermes-NSFWV1" \ --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": "Lexic0n/Mistral_7B-Open_Hermes-NSFWV1", "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 "Lexic0n/Mistral_7B-Open_Hermes-NSFWV1" \ --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": "Lexic0n/Mistral_7B-Open_Hermes-NSFWV1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Lexic0n/Mistral_7B-Open_Hermes-NSFWV1 with Docker Model Runner:
docker model run hf.co/Lexic0n/Mistral_7B-Open_Hermes-NSFWV1
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,83 @@
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- not-for-all-audiences
|
| 7 |
---
|
| 8 |
+
|
| 9 |
+
# Model Card for Mistral_7B-Open_Hermes-NSFWV1
|
| 10 |
+
|
| 11 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
| 12 |
+
|
| 13 |
+
This modelcard aims to be a base template for new models. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/modelcard_template.md?plain=1).
|
| 14 |
+
|
| 15 |
+
## Model Details
|
| 16 |
+
|
| 17 |
+
### Model Description
|
| 18 |
+
|
| 19 |
+
This is a fine-tuned version of teknium/OpenHermes-2p5-Mistral-7B,
|
| 20 |
+
|
| 21 |
+
- **Model type:** Mistral
|
| 22 |
+
- **Language(s) (NLP):** English
|
| 23 |
+
- **License:** apache-2.0
|
| 24 |
+
- **Finetuned from model :** teknium/OpenHermes-2p5-Mistral-7B
|
| 25 |
+
|
| 26 |
+
### Model Sources [optional]
|
| 27 |
+
|
| 28 |
+
<!-- Provide the basic links for the model. -->
|
| 29 |
+
|
| 30 |
+
- **Repository:** * [teknium/OpenHermes-2p5-Mistral-7B](https://huggingface.co/teknium/OpenHermes-2.5-Mistral-7B)
|
| 31 |
+
|
| 32 |
+
## Uses
|
| 33 |
+
|
| 34 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
| 35 |
+
|
| 36 |
+
### Direct Use
|
| 37 |
+
|
| 38 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
| 39 |
+
|
| 40 |
+
[More Information Needed]
|
| 41 |
+
|
| 42 |
+
### Downstream Use [optional]
|
| 43 |
+
|
| 44 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
| 45 |
+
|
| 46 |
+
[More Information Needed]
|
| 47 |
+
|
| 48 |
+
### Out-of-Scope Use
|
| 49 |
+
|
| 50 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
| 51 |
+
|
| 52 |
+
[More Information Needed]
|
| 53 |
+
|
| 54 |
+
## Bias, Risks, and Limitations
|
| 55 |
+
|
| 56 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
| 57 |
+
|
| 58 |
+
[More Information Needed]
|
| 59 |
+
|
| 60 |
+
### Recommendations
|
| 61 |
+
|
| 62 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
| 63 |
+
|
| 64 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
| 65 |
+
|
| 66 |
+
## How to Get Started with the Model
|
| 67 |
+
|
| 68 |
+
Use the code below to get started with the model.
|
| 69 |
+
|
| 70 |
+
[More Information Needed]
|
| 71 |
+
|
| 72 |
+
## Training Details
|
| 73 |
+
|
| 74 |
+
### Training Data
|
| 75 |
+
|
| 76 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
| 77 |
+
|
| 78 |
+
[More Information Needed]
|
| 79 |
+
|
| 80 |
+
### Training Procedure
|
| 81 |
+
|
| 82 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
| 83 |
+
|