Text Generation
Transformers
Safetensors
Turkish
English
llama
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use curiositytech/MARS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use curiositytech/MARS with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="curiositytech/MARS") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("curiositytech/MARS") model = AutoModelForCausalLM.from_pretrained("curiositytech/MARS") 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 curiositytech/MARS with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "curiositytech/MARS" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "curiositytech/MARS", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/curiositytech/MARS
- SGLang
How to use curiositytech/MARS 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 "curiositytech/MARS" \ --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": "curiositytech/MARS", "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 "curiositytech/MARS" \ --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": "curiositytech/MARS", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use curiositytech/MARS with Docker Model Runner:
docker model run hf.co/curiositytech/MARS
add metrics to README
Browse files
README.md
CHANGED
|
@@ -1,8 +1,81 @@
|
|
| 1 |
---
|
| 2 |
license: llama3
|
| 3 |
language:
|
| 4 |
-
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
<p style="align-self: center">
|
|
|
|
| 1 |
---
|
| 2 |
license: llama3
|
| 3 |
language:
|
| 4 |
+
- tr
|
| 5 |
+
- en
|
| 6 |
+
model-index:
|
| 7 |
+
- name: MARS
|
| 8 |
+
results:
|
| 9 |
+
- task:
|
| 10 |
+
type: text-generation
|
| 11 |
+
name: Text Generation
|
| 12 |
+
dataset:
|
| 13 |
+
name: AI2 Reasoning Challenge TR
|
| 14 |
+
type: ai2_arc
|
| 15 |
+
config: ARC-Challenge
|
| 16 |
+
split: test
|
| 17 |
+
args:
|
| 18 |
+
num_few_shot: 25
|
| 19 |
+
metrics:
|
| 20 |
+
- type: acc
|
| 21 |
+
value: 46.08
|
| 22 |
+
name: accuracy
|
| 23 |
+
- task:
|
| 24 |
+
type: text-generation
|
| 25 |
+
name: Text Generation
|
| 26 |
+
dataset:
|
| 27 |
+
name: MMLU TR
|
| 28 |
+
type: cais/mmlu
|
| 29 |
+
config: all
|
| 30 |
+
split: test
|
| 31 |
+
args:
|
| 32 |
+
num_few_shot: 5
|
| 33 |
+
metrics:
|
| 34 |
+
- type: acc
|
| 35 |
+
value: 47.02
|
| 36 |
+
name: accuracy
|
| 37 |
+
- task:
|
| 38 |
+
type: text-generation
|
| 39 |
+
name: Text Generation
|
| 40 |
+
dataset:
|
| 41 |
+
name: TruthfulQA TR
|
| 42 |
+
type: truthful_qa
|
| 43 |
+
config: multiple_choice
|
| 44 |
+
split: validation
|
| 45 |
+
args:
|
| 46 |
+
num_few_shot: 0
|
| 47 |
+
metrics:
|
| 48 |
+
- type: acc
|
| 49 |
+
name: accuracy
|
| 50 |
+
value: 49.38
|
| 51 |
+
- task:
|
| 52 |
+
type: text-generation
|
| 53 |
+
name: Text Generation
|
| 54 |
+
dataset:
|
| 55 |
+
name: Winogrande TR
|
| 56 |
+
type: winogrande
|
| 57 |
+
config: winogrande_xl
|
| 58 |
+
split: validation
|
| 59 |
+
args:
|
| 60 |
+
num_few_shot: 5
|
| 61 |
+
metrics:
|
| 62 |
+
- type: acc
|
| 63 |
+
value: 53.71
|
| 64 |
+
name: accuracy
|
| 65 |
+
- task:
|
| 66 |
+
type: text-generation
|
| 67 |
+
name: Text Generation
|
| 68 |
+
dataset:
|
| 69 |
+
name: GSM8k TR
|
| 70 |
+
type: gsm8k
|
| 71 |
+
config: main
|
| 72 |
+
split: test
|
| 73 |
+
args:
|
| 74 |
+
num_few_shot: 5
|
| 75 |
+
metrics:
|
| 76 |
+
- type: acc
|
| 77 |
+
value: 53.08
|
| 78 |
+
name: accuracy
|
| 79 |
---
|
| 80 |
|
| 81 |
<p style="align-self: center">
|