Instructions to use cnbeining/OpenHermes-2.5-Mistral-7B-Sentence-Segmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cnbeining/OpenHermes-2.5-Mistral-7B-Sentence-Segmentation with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("cnbeining/OpenHermes-2.5-Mistral-7B-Sentence-Segmentation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use cnbeining/OpenHermes-2.5-Mistral-7B-Sentence-Segmentation with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cnbeining/OpenHermes-2.5-Mistral-7B-Sentence-Segmentation to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for cnbeining/OpenHermes-2.5-Mistral-7B-Sentence-Segmentation to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cnbeining/OpenHermes-2.5-Mistral-7B-Sentence-Segmentation to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="cnbeining/OpenHermes-2.5-Mistral-7B-Sentence-Segmentation", max_seq_length=2048, )
Update README.md
Browse files
README.md
CHANGED
|
@@ -15,6 +15,8 @@ datasets:
|
|
| 15 |
|
| 16 |
# OpenHermes-2.5-Mistral-7B-Sentence-Segmentation
|
| 17 |
|
|
|
|
|
|
|
| 18 |
## Model description
|
| 19 |
|
| 20 |
`OpenHermes-2.5-Mistral-7B-Sentence-Segmentation` is a DPO finetuned OpenHermes model for sentence segmentation capability.
|
|
@@ -61,6 +63,7 @@ Segment:<|im_end|>
|
|
| 61 |
with output in the format of
|
| 62 |
|
| 63 |
```
|
|
|
|
| 64 |
```yaml
|
| 65 |
"output":
|
| 66 |
"sentence":
|
|
@@ -89,6 +92,7 @@ with output in the format of
|
|
| 89 |
- "word": "than"
|
| 90 |
- "word": "penetration."
|
| 91 |
```
|
|
|
|
| 92 |
```
|
| 93 |
|
| 94 |
## Misc
|
|
|
|
| 15 |
|
| 16 |
# OpenHermes-2.5-Mistral-7B-Sentence-Segmentation
|
| 17 |
|
| 18 |
+
_See files for original notebook used for finetuning_
|
| 19 |
+
|
| 20 |
## Model description
|
| 21 |
|
| 22 |
`OpenHermes-2.5-Mistral-7B-Sentence-Segmentation` is a DPO finetuned OpenHermes model for sentence segmentation capability.
|
|
|
|
| 63 |
with output in the format of
|
| 64 |
|
| 65 |
```
|
| 66 |
+
|
| 67 |
```yaml
|
| 68 |
"output":
|
| 69 |
"sentence":
|
|
|
|
| 92 |
- "word": "than"
|
| 93 |
- "word": "penetration."
|
| 94 |
```
|
| 95 |
+
|
| 96 |
```
|
| 97 |
|
| 98 |
## Misc
|