Text Generation
Transformers
Safetensors
NeMo
English
mistral
model_stock
Merge
mergekit
conversational
text-generation-inference
Instructions to use EldritchLabs/Blue20-Model_Stock-12B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EldritchLabs/Blue20-Model_Stock-12B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EldritchLabs/Blue20-Model_Stock-12B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EldritchLabs/Blue20-Model_Stock-12B") model = AutoModelForCausalLM.from_pretrained("EldritchLabs/Blue20-Model_Stock-12B", 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]:])) - NeMo
How to use EldritchLabs/Blue20-Model_Stock-12B with NeMo:
# tag did not correspond to a valid NeMo domain.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EldritchLabs/Blue20-Model_Stock-12B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EldritchLabs/Blue20-Model_Stock-12B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EldritchLabs/Blue20-Model_Stock-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EldritchLabs/Blue20-Model_Stock-12B
- SGLang
How to use EldritchLabs/Blue20-Model_Stock-12B 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 "EldritchLabs/Blue20-Model_Stock-12B" \ --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": "EldritchLabs/Blue20-Model_Stock-12B", "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 "EldritchLabs/Blue20-Model_Stock-12B" \ --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": "EldritchLabs/Blue20-Model_Stock-12B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use EldritchLabs/Blue20-Model_Stock-12B with Docker Model Runner:
docker model run hf.co/EldritchLabs/Blue20-Model_Stock-12B
| base_model: B:/12B/models--EldritchLabs--Cactus-Dream-Horror-12B | |
| models: | |
| - model: B:/12B/models--Aleteian--Magnum-Opus-Galatea-MN-12B | |
| - model: B:/12B/models--Azazelle--MN-Halide-12b-v1.0 | |
| - model: B:/12B/models--crestf411--MN-Slush | |
| - model: B:/12B/models--DavidAU--MN-GRAND-Gutenberg-Lyra4-Lyra-12B-DARKNESS | |
| - model: B:/12B/models--EldritchLabs--Altair-Stock-12B-v1 | |
| - model: B:/12B/models--EldritchLabs--Cactus-Dream-Horror-12B | |
| - model: B:/12B/models--FallenMerick--MN-Violet-Lotus-12B | |
| - model: B:/12B/models--Khetterman--AbominationScience-12B-v4 | |
| - model: B:/12B/models--Khetterman--DarkAtom-12B-v3 | |
| - model: B:/12B/models--MarinaraSpaghetti--NemoMix-Unleashed-12B | |
| - model: B:/12B/models--Nitral-AI--Captain-Eris_Violet-V0.420-12B | |
| - model: B:/12B/models--ohyeah1--Violet-Lyra-Gutenberg-v2 | |
| - model: B:/12B/models--Retreatcost--Darkstar-12B | |
| - model: B:/12B/models--Vortex5--Astral-Noctra-12B | |
| - model: B:/12B/models--Vortex5--Azure-Starlight-12B | |
| - model: B:/12B/models--Vortex5--Crimson-Constellation-12B | |
| - model: B:/12B/models--Vortex5--Red-Synthesis-12B | |
| - model: B:/12B/models--Vortex5--Shining-Seraph-12B | |
| - model: B:/12B/models--Vortex5--Starlit-Shadow-12B | |
| - model: B:/12B/models--Vortex5--Vermilion-Sage-12B | |
| - model: B:/12B/models--yamatazen--BlueLight-12B | |
| merge_method: model_stock | |
| parameters: | |
| filter_wise: false | |
| dtype: float32 | |
| out_dtype: bfloat16 | |
| tokenizer: | |
| source: union | |
| chat_template: auto |