Instructions to use DavidAU/L3-Dark-Planet-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DavidAU/L3-Dark-Planet-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DavidAU/L3-Dark-Planet-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DavidAU/L3-Dark-Planet-8B") model = AutoModelForCausalLM.from_pretrained("DavidAU/L3-Dark-Planet-8B") 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
- vLLM
How to use DavidAU/L3-Dark-Planet-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DavidAU/L3-Dark-Planet-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DavidAU/L3-Dark-Planet-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/DavidAU/L3-Dark-Planet-8B
- SGLang
How to use DavidAU/L3-Dark-Planet-8B 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 "DavidAU/L3-Dark-Planet-8B" \ --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": "DavidAU/L3-Dark-Planet-8B", "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 "DavidAU/L3-Dark-Planet-8B" \ --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": "DavidAU/L3-Dark-Planet-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use DavidAU/L3-Dark-Planet-8B with Docker Model Runner:
docker model run hf.co/DavidAU/L3-Dark-Planet-8B
L3-Dark-Planet-8B
This repo contains the full precision source code, in "safe tensors" format to generate GGUFs, GPTQ, EXL2, AWQ, HQQ and other formats. The source code can also be used directly.
MERGEKIT FILE To Create this Model:
models:
- model: Sao10K/L3-8B-Stheno-v3.2
parameters:
weight: [1,1,.75,.5,.25,.25,.05,.01]
- model: NeverSleep/Llama-3-Lumimaid-8B-v0.1-OAS
parameters:
weight: [0,0,.25,.35,.4,.25,.30,.04]
- model: Hastagaras/Jamet-8B-L3-MK.V-Blackroot
parameters:
weight: [0,0,0,.15,.35,.5,.65,.95]
merge_method: dare_ties
base_model: meta-llama/Meta-Llama-3-8B-Instruct
dtype: bfloat16
MERGE FILE NOTES:
You can replace the BASE model with Llama 3.1 model(s) to create a 128k version(s) of this model.
You can also replace the BASE model with Nivida 1,2 or 4 million "Llama 3.1" base models too.
Likewise, you can replace the BASE model with different Llama 3s to create different flavors of this model.
In this merge, the "base" model is consumed (weights replaced) COMPLETELY, yet characteristics of the base model will remain.
If you alter the "weights" (each total 1 (100%) of the 3 models together) to less than 1 -> the remaining will be "BASE" weights and not all the "weights" of the base model will be consumed / replaced.
You can of course, replace all the models too...
!! => Each of the "weights" apply to 4 layers of the model (32/8) each, you can expand this to 32 to fine tune each layer of each model.
MERGEKIT:
https://github.com/arcee-ai/mergekit
SPECIAL NOTE:
If you want to see what happens when a "base" is replaced ("SuperNova"), and/or the formula is altered (including use of "density" - which causes random pruning) see the models in the "Dark Planet Wordstorm project" - a collection of 12 modified versions of Dark Planet - each model is unique and different from Dark Planet.
IMPORTANT: Highest Quality Settings / Optimal Operation Guide / Parameters and Samplers
If you are going to use this model, (source, GGUF or a different quant), please review this document for critical parameter, sampler and advance sampler settings (for multiple AI/LLM aps).
This a "Class 1" (settings will enhance operation) model:
For all settings used for this model (including specifics for its "class"), including example generation(s) and for advanced settings guide (which many times addresses any model issue(s)), including methods to improve model performance for all use case(s) as well as chat, roleplay and other use case(s) (especially for use case(s) beyond the model's design) please see:
REASON:
Regardless of "model class" this document will detail methods to enhance operations.
If the model is a Class 3/4 model the default settings (parameters, samplers, advanced samplers) must be set for "use case(s)" uses correctly. Some AI/LLM apps DO NOT have consistant default setting(s) which result in sub-par model operation. Like wise for Class 3/4 models (which operate somewhat to very differently than standard models) additional samplers and advanced samplers settings are required to "smooth out" operation, AND/OR also allow full operation for use cases the model was not designed for.
BONUS - Use these settings for ANY model, ANY repo, ANY quant (including source/full precision):
This document also details parameters, sampler and advanced samplers that can be use FOR ANY MODEL, FROM ANY REPO too - all quants, and of course source code operation too - to enhance the operation of any model.
NOTE:
I strongly suggest you also visit the DavidAU GGUF (below) repo too for more details in using this model ; especially if it is "Class 3" or "Class 4" to get maximum performance from the model.
For full information about this model, including:
- Details about this model and its use case(s).
- Context limits
- Special usage notes / settings.
- Any model(s) used to create this model.
- Template(s) used to access/use this model.
- Example generation(s)
- GGUF quants of this model
Please go to:
[ https://huggingface.co/DavidAU/L3-Dark-Planet-8B-GGUF ]
For "Dark Planet Horror City 8b" :
[ https://huggingface.co/DavidAU/L3-Dark-Planet-Horror-City-8B-NEO-Imatrix-GGUF ]
(To create GGUFs for Dark Planet Horror City 8B use the ".dat" file for Imatrix in this repo )
Additional Quants:
[ https://huggingface.co/RichardErkhov/DavidAU_-_L3-Dark-Planet-8B-gguf ]
[ https://huggingface.co/QuantFactory/L3-Dark-Planet-8B-GGUF ]
Imatrix GGUFS:
[ https://huggingface.co/mradermacher/L3-Dark-Planet-8B-i1-GGUF ]
[ https://huggingface.co/mradermacher/L3-Dark-Planet-8B-GGUF ]
- Downloads last month
- 31