Text Generation
Transformers
Safetensors
llama
mergekit
Merge
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use Locutusque/Llama-3-Yggdrasil-2.0-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Locutusque/Llama-3-Yggdrasil-2.0-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Locutusque/Llama-3-Yggdrasil-2.0-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Locutusque/Llama-3-Yggdrasil-2.0-8B") model = AutoModelForCausalLM.from_pretrained("Locutusque/Llama-3-Yggdrasil-2.0-8B", 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 Locutusque/Llama-3-Yggdrasil-2.0-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Locutusque/Llama-3-Yggdrasil-2.0-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": "Locutusque/Llama-3-Yggdrasil-2.0-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Locutusque/Llama-3-Yggdrasil-2.0-8B
- SGLang
How to use Locutusque/Llama-3-Yggdrasil-2.0-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 "Locutusque/Llama-3-Yggdrasil-2.0-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": "Locutusque/Llama-3-Yggdrasil-2.0-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 "Locutusque/Llama-3-Yggdrasil-2.0-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": "Locutusque/Llama-3-Yggdrasil-2.0-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Locutusque/Llama-3-Yggdrasil-2.0-8B with Docker Model Runner:
docker model run hf.co/Locutusque/Llama-3-Yggdrasil-2.0-8B
Upload folder using huggingface_hub
Browse files- README.md +5 -5
- mergekit_config.yml +1 -1
- model-00001-of-00004.safetensors +1 -1
- model-00002-of-00004.safetensors +1 -1
- model-00003-of-00004.safetensors +1 -1
- model-00004-of-00004.safetensors +1 -1
README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
|
|
|
| 3 |
- NousResearch/Meta-Llama-3-8B
|
| 4 |
-
-
|
| 5 |
- Locutusque/llama-3-neural-chat-v2.2-8b
|
| 6 |
-
- Locutusque/Llama-3-NeuralHercules-5.0-8B
|
| 7 |
library_name: transformers
|
| 8 |
tags:
|
| 9 |
- mergekit
|
|
@@ -22,9 +22,9 @@ This model was merged using the [DARE](https://arxiv.org/abs/2311.03099) [TIES](
|
|
| 22 |
### Models Merged
|
| 23 |
|
| 24 |
The following models were included in the merge:
|
| 25 |
-
* [openchat/openchat-3.6-8b-20240522](https://huggingface.co/openchat/openchat-3.6-8b-20240522)
|
| 26 |
-
* [Locutusque/llama-3-neural-chat-v2.2-8b](https://huggingface.co/Locutusque/llama-3-neural-chat-v2.2-8b)
|
| 27 |
* [Locutusque/Llama-3-NeuralHercules-5.0-8B](https://huggingface.co/Locutusque/Llama-3-NeuralHercules-5.0-8B)
|
|
|
|
|
|
|
| 28 |
|
| 29 |
### Configuration
|
| 30 |
|
|
@@ -34,7 +34,7 @@ The following YAML configuration was used to produce this model:
|
|
| 34 |
models:
|
| 35 |
- model: NousResearch/Meta-Llama-3-8B
|
| 36 |
# No parameters necessary for base model
|
| 37 |
-
- model:
|
| 38 |
parameters:
|
| 39 |
density: 0.6
|
| 40 |
weight: 0.55
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
+
- Locutusque/Llama-3-NeuralHercules-5.0-8B
|
| 4 |
- NousResearch/Meta-Llama-3-8B
|
| 5 |
+
- NousResearch/Hermes-2-Theta-Llama-3-8B
|
| 6 |
- Locutusque/llama-3-neural-chat-v2.2-8b
|
|
|
|
| 7 |
library_name: transformers
|
| 8 |
tags:
|
| 9 |
- mergekit
|
|
|
|
| 22 |
### Models Merged
|
| 23 |
|
| 24 |
The following models were included in the merge:
|
|
|
|
|
|
|
| 25 |
* [Locutusque/Llama-3-NeuralHercules-5.0-8B](https://huggingface.co/Locutusque/Llama-3-NeuralHercules-5.0-8B)
|
| 26 |
+
* [NousResearch/Hermes-2-Theta-Llama-3-8B](https://huggingface.co/NousResearch/Hermes-2-Theta-Llama-3-8B)
|
| 27 |
+
* [Locutusque/llama-3-neural-chat-v2.2-8b](https://huggingface.co/Locutusque/llama-3-neural-chat-v2.2-8b)
|
| 28 |
|
| 29 |
### Configuration
|
| 30 |
|
|
|
|
| 34 |
models:
|
| 35 |
- model: NousResearch/Meta-Llama-3-8B
|
| 36 |
# No parameters necessary for base model
|
| 37 |
+
- model: NousResearch/Hermes-2-Theta-Llama-3-8B
|
| 38 |
parameters:
|
| 39 |
density: 0.6
|
| 40 |
weight: 0.55
|
mergekit_config.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
models:
|
| 2 |
- model: NousResearch/Meta-Llama-3-8B
|
| 3 |
# No parameters necessary for base model
|
| 4 |
-
- model:
|
| 5 |
parameters:
|
| 6 |
density: 0.6
|
| 7 |
weight: 0.55
|
|
|
|
| 1 |
models:
|
| 2 |
- model: NousResearch/Meta-Llama-3-8B
|
| 3 |
# No parameters necessary for base model
|
| 4 |
+
- model: NousResearch/Hermes-2-Theta-Llama-3-8B
|
| 5 |
parameters:
|
| 6 |
density: 0.6
|
| 7 |
weight: 0.55
|
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4953586384
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f3e78a6a1fec2b7da0b43aff357ae78f90f401f47d28aed0a15276fc8379124f
|
| 3 |
size 4953586384
|
model-00002-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4999819336
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:87d99804a995cbccceaac8ff922e34bbc03559c6bcfc2eae3681d00776dc110d
|
| 3 |
size 4999819336
|
model-00003-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4915916144
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1c3fe4b0a9db1206a5371b2be659e5e8f779704b66f4e8aec947fd83f38a9913
|
| 3 |
size 4915916144
|
model-00004-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1191234472
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef161279de8eb5b33d1c9929827665f70a06a2807e03adea73d0757d70893d4b
|
| 3 |
size 1191234472
|