Text Generation
Transformers
PyTorch
Safetensors
English
llama
physics
cosmology
conversational
text-generation-inference
Instructions to use Tijmen2/cosmosage-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tijmen2/cosmosage-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Tijmen2/cosmosage-v3") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Tijmen2/cosmosage-v3") model = AutoModelForCausalLM.from_pretrained("Tijmen2/cosmosage-v3", 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 Tijmen2/cosmosage-v3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tijmen2/cosmosage-v3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tijmen2/cosmosage-v3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Tijmen2/cosmosage-v3
- SGLang
How to use Tijmen2/cosmosage-v3 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 "Tijmen2/cosmosage-v3" \ --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": "Tijmen2/cosmosage-v3", "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 "Tijmen2/cosmosage-v3" \ --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": "Tijmen2/cosmosage-v3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Tijmen2/cosmosage-v3 with Docker Model Runner:
docker model run hf.co/Tijmen2/cosmosage-v3
Adding Evaluation Results (#2)
Browse files- Adding Evaluation Results (4d27eab767fdd734aaf21146c43e63e8c05c16d4)
Co-authored-by: Open LLM Leaderboard PR Bot <leaderboard-pr-bot@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
tags:
|
| 3 |
- physics
|
| 4 |
- cosmology
|
| 5 |
-
model-index:
|
| 6 |
-
- name: cosmosage-v3
|
| 7 |
-
results: []
|
| 8 |
-
license: mit
|
| 9 |
-
language:
|
| 10 |
-
- en
|
| 11 |
-
pipeline_tag: text-generation
|
| 12 |
base_model: meta-llama/Meta-Llama-3-8B
|
| 13 |
datasets:
|
| 14 |
- teknium/OpenHermes-2.5
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
---
|
| 16 |
|
| 17 |
# cosmosage
|
|
@@ -97,4 +97,17 @@ cosmosage can be cited using the following BibTeX entry:
|
|
| 97 |
}
|
| 98 |
```
|
| 99 |
|
| 100 |
-
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: mit
|
| 5 |
tags:
|
| 6 |
- physics
|
| 7 |
- cosmology
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
base_model: meta-llama/Meta-Llama-3-8B
|
| 9 |
datasets:
|
| 10 |
- teknium/OpenHermes-2.5
|
| 11 |
+
pipeline_tag: text-generation
|
| 12 |
+
model-index:
|
| 13 |
+
- name: cosmosage-v3
|
| 14 |
+
results: []
|
| 15 |
---
|
| 16 |
|
| 17 |
# cosmosage
|
|
|
|
| 97 |
}
|
| 98 |
```
|
| 99 |
|
| 100 |
+
[<img src="https://raw.githubusercontent.com/OpenAccess-AI-Collective/axolotl/main/image/axolotl-badge-web.png" alt="Built with Axolotl" width="200" height="32"/>](https://github.com/OpenAccess-AI-Collective/axolotl)
|
| 101 |
+
# [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
|
| 102 |
+
Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/details_Tijmen2__cosmosage-v3)
|
| 103 |
+
|
| 104 |
+
| Metric |Value|
|
| 105 |
+
|-------------------|----:|
|
| 106 |
+
|Avg. |16.80|
|
| 107 |
+
|IFEval (0-Shot) |44.82|
|
| 108 |
+
|BBH (3-Shot) |22.69|
|
| 109 |
+
|MATH Lvl 5 (4-Shot)| 1.74|
|
| 110 |
+
|GPQA (0-shot) | 4.36|
|
| 111 |
+
|MuSR (0-shot) |10.69|
|
| 112 |
+
|MMLU-PRO (5-shot) |16.51|
|
| 113 |
+
|