Text Generation
Transformers
Safetensors
mistral
Merge
mergekit
lazymergekit
anthracite-org/magnum-v2-12b
Trappu/Nemo-Picaro-12B
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2") model = AutoModelForCausalLM.from_pretrained("RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2", 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 RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2
- SGLang
How to use RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2 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 "RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2" \ --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": "RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2", "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 "RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2" \ --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": "RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2 with Docker Model Runner:
docker model run hf.co/RossAscends/Magnum-Picaro-0.7-v2-12b-5.0bpw-EXL2
Update README.md
Browse files
README.md
CHANGED
|
@@ -114,6 +114,11 @@ pipeline_tag: text-generation
|
|
| 114 |
library_name: transformers
|
| 115 |
---
|
| 116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 117 |
# Details
|
| 118 |
|
| 119 |
This model is a merge between [Trappu/Nemo-Picaro-12B](https://huggingface.co/Trappu/Nemo-Picaro-12B), a model trained on my own little dataset free of synthetic data, which focuses solely on storywriting and scenrio prompting (Example: `[ Scenario: bla bla bla; Tags: bla bla bla ]`), and [anthracite-org/magnum-v2-12b](https://huggingface.co/anthracite-org/magnum-v2-12b).
|
|
|
|
| 114 |
library_name: transformers
|
| 115 |
---
|
| 116 |
|
| 117 |
+
5bpw EXL2 quantization of Trappu's [Magnum-Picaro-0.7-v2-12b](https://huggingface.co/Trappu/Magnum-Picaro-0.7-v2-12b).
|
| 118 |
+
Instruct format: ChatML preferred, Mistral possible
|
| 119 |
+
|
| 120 |
+
Origin repo model card info👇
|
| 121 |
+
|
| 122 |
# Details
|
| 123 |
|
| 124 |
This model is a merge between [Trappu/Nemo-Picaro-12B](https://huggingface.co/Trappu/Nemo-Picaro-12B), a model trained on my own little dataset free of synthetic data, which focuses solely on storywriting and scenrio prompting (Example: `[ Scenario: bla bla bla; Tags: bla bla bla ]`), and [anthracite-org/magnum-v2-12b](https://huggingface.co/anthracite-org/magnum-v2-12b).
|