Instructions to use Elfrino/PsyMedLewdPass with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Elfrino/PsyMedLewdPass with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Elfrino/PsyMedLewdPass")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Elfrino/PsyMedLewdPass") model = AutoModelForCausalLM.from_pretrained("Elfrino/PsyMedLewdPass", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Elfrino/PsyMedLewdPass with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Elfrino/PsyMedLewdPass" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Elfrino/PsyMedLewdPass", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Elfrino/PsyMedLewdPass
- SGLang
How to use Elfrino/PsyMedLewdPass 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 "Elfrino/PsyMedLewdPass" \ --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": "Elfrino/PsyMedLewdPass", "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 "Elfrino/PsyMedLewdPass" \ --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": "Elfrino/PsyMedLewdPass", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Elfrino/PsyMedLewdPass with Docker Model Runner:
docker model run hf.co/Elfrino/PsyMedLewdPass
| base_model: | |
| - Undi95/Xwin-MLewd-13B-V0.2 | |
| - Undi95/PsyMedRP-v1-13B | |
| library_name: transformers | |
| tags: | |
| - mergekit | |
| - merge | |
|  | |
| ***notes:*** | |
| Creative, articulate and has a wacky sense of humour with the right settings: | |
| RECOMMENDED SETTINGS: | |
| (based on KoboldCPP): | |
| Preset: Mayday | |
| Temperature - 1.3 | |
| Max Ctx. Tokens - 4096 | |
| Top p Sampling - 0.99 | |
| Repetition Penalty - 1.1 | |
| Amount to Gen. - 280 | |
| ***New findings:*** | |
| around 47 layers offloaded to GPU | |
| Smartcontext enabled | |
| Custom RoPe Config enabled (but left as default) | |
| Prompt template: Alpaca | |
| # merge | |
| This is a merge of pre-trained language models created using [mergekit](https://github.com/cg123/mergekit). | |
| ## Merge Details | |
| ### Merge Method | |
| This model was merged using the passthrough merge method. | |
| ### Models Merged | |
| The following models were included in the merge: | |
| * [Undi95/Xwin-MLewd-13B-V0.2](https://huggingface.co/Undi95/Xwin-MLewd-13B-V0.2) | |
| * [Undi95/PsyMedRP-v1-13B](https://huggingface.co/Undi95/PsyMedRP-v1-13B) | |
| ### Configuration | |
| The following YAML configuration was used to produce this model: | |
| ```yaml | |
| slices: | |
| - sources: | |
| - model: Undi95/PsyMedRP-v1-13B | |
| layer_range: [0, 16] | |
| - sources: | |
| - model: Undi95/Xwin-MLewd-13B-V0.2 | |
| layer_range: [8, 24] | |
| - sources: | |
| - model: Undi95/PsyMedRP-v1-13B | |
| layer_range: [17, 32] | |
| - sources: | |
| - model: Undi95/Xwin-MLewd-13B-V0.2 | |
| layer_range: [25, 40] | |
| merge_method: passthrough | |
| dtype: float16 | |
| ``` | |