Text Generation
Transformers
Safetensors
llama
mergekit
Merge
Roleplay
Climate
Environment
Biodiversity
Indigenous
conversational
text-generation-inference
Instructions to use MotherEarth/MotherEarth-1.0-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MotherEarth/MotherEarth-1.0-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MotherEarth/MotherEarth-1.0-8B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("MotherEarth/MotherEarth-1.0-8B") model = AutoModelForMultimodalLM.from_pretrained("MotherEarth/MotherEarth-1.0-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 Settings
- vLLM
How to use MotherEarth/MotherEarth-1.0-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MotherEarth/MotherEarth-1.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": "MotherEarth/MotherEarth-1.0-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MotherEarth/MotherEarth-1.0-8B
- SGLang
How to use MotherEarth/MotherEarth-1.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 "MotherEarth/MotherEarth-1.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": "MotherEarth/MotherEarth-1.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 "MotherEarth/MotherEarth-1.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": "MotherEarth/MotherEarth-1.0-8B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use MotherEarth/MotherEarth-1.0-8B with Docker Model Runner:
docker model run hf.co/MotherEarth/MotherEarth-1.0-8B
Upload folder using huggingface_hub
Browse files- README.md +5 -5
- config.json +1 -1
- mergekit_config.yml +3 -3
- model-00001-of-00004.safetensors +2 -2
- model-00002-of-00004.safetensors +2 -2
- model-00003-of-00004.safetensors +2 -2
- model-00004-of-00004.safetensors +2 -2
README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
-
- MotherEarth/
|
| 4 |
- MotherEarth/MotherEarth_1.0
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
|
@@ -20,7 +20,7 @@ This model was merged using the SLERP merge method.
|
|
| 20 |
### Models Merged
|
| 21 |
|
| 22 |
The following models were included in the merge:
|
| 23 |
-
* [MotherEarth/
|
| 24 |
* [MotherEarth/MotherEarth_1.0](https://huggingface.co/MotherEarth/MotherEarth_1.0)
|
| 25 |
|
| 26 |
### Configuration
|
|
@@ -30,11 +30,11 @@ The following YAML configuration was used to produce this model:
|
|
| 30 |
```yaml
|
| 31 |
models:
|
| 32 |
- model: MotherEarth/MotherEarth_1.0
|
| 33 |
-
- model: MotherEarth/
|
| 34 |
merge_method: slerp
|
| 35 |
base_model: MotherEarth/MotherEarth_1.0
|
| 36 |
-
dtype:
|
| 37 |
parameters:
|
| 38 |
-
t: [0, 0.
|
| 39 |
|
| 40 |
```
|
|
|
|
| 1 |
---
|
| 2 |
base_model:
|
| 3 |
+
- MotherEarth/slerp_MotherEarth-MothErarth_slerp_aflah-linear_strom
|
| 4 |
- MotherEarth/MotherEarth_1.0
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
|
|
|
| 20 |
### Models Merged
|
| 21 |
|
| 22 |
The following models were included in the merge:
|
| 23 |
+
* [MotherEarth/slerp_MotherEarth-MothErarth_slerp_aflah-linear_strom](https://huggingface.co/MotherEarth/slerp_MotherEarth-MothErarth_slerp_aflah-linear_strom)
|
| 24 |
* [MotherEarth/MotherEarth_1.0](https://huggingface.co/MotherEarth/MotherEarth_1.0)
|
| 25 |
|
| 26 |
### Configuration
|
|
|
|
| 30 |
```yaml
|
| 31 |
models:
|
| 32 |
- model: MotherEarth/MotherEarth_1.0
|
| 33 |
+
- model: MotherEarth/slerp_MotherEarth-MothErarth_slerp_aflah-linear_strom
|
| 34 |
merge_method: slerp
|
| 35 |
base_model: MotherEarth/MotherEarth_1.0
|
| 36 |
+
dtype: bfloat16
|
| 37 |
parameters:
|
| 38 |
+
t: [0.2, 0.4, 0.8, 0.4, 0.2] # V shaped curve: Hermes for input & output, WizardMath in the middle layers
|
| 39 |
|
| 40 |
```
|
config.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
| 22 |
"rope_scaling": null,
|
| 23 |
"rope_theta": 500000.0,
|
| 24 |
"tie_word_embeddings": false,
|
| 25 |
-
"torch_dtype": "
|
| 26 |
"transformers_version": "4.44.1",
|
| 27 |
"use_cache": true,
|
| 28 |
"vocab_size": 128256
|
|
|
|
| 22 |
"rope_scaling": null,
|
| 23 |
"rope_theta": 500000.0,
|
| 24 |
"tie_word_embeddings": false,
|
| 25 |
+
"torch_dtype": "bfloat16",
|
| 26 |
"transformers_version": "4.44.1",
|
| 27 |
"use_cache": true,
|
| 28 |
"vocab_size": 128256
|
mergekit_config.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
models:
|
| 2 |
- model: MotherEarth/MotherEarth_1.0
|
| 3 |
-
- model: MotherEarth/
|
| 4 |
merge_method: slerp
|
| 5 |
base_model: MotherEarth/MotherEarth_1.0
|
| 6 |
-
dtype:
|
| 7 |
parameters:
|
| 8 |
-
t: [0, 0.
|
|
|
|
| 1 |
models:
|
| 2 |
- model: MotherEarth/MotherEarth_1.0
|
| 3 |
+
- model: MotherEarth/slerp_MotherEarth-MothErarth_slerp_aflah-linear_strom
|
| 4 |
merge_method: slerp
|
| 5 |
base_model: MotherEarth/MotherEarth_1.0
|
| 6 |
+
dtype: bfloat16
|
| 7 |
parameters:
|
| 8 |
+
t: [0.2, 0.4, 0.8, 0.4, 0.2] # V shaped curve: Hermes for input & output, WizardMath in the middle layers
|
model-00001-of-00004.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:003e3b378aacff044f449f7e3a8c8ad1b220961c5c7f7a415e679b0f9aa5f5a8
|
| 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
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2960c39b03dd4921bb38644fd22380ce7d3cd0de2d2eed43f9a88e3a1d943f8e
|
| 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
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed26b733779f321b51f886c6aefe974822be22c489c15afd911702721b50b568
|
| 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
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27edd6cc3f5e44c9181df24c2fa0ac642b862ddcd786af3d8c160dea4a6e94c8
|
| 3 |
+
size 1191234472
|