Text Generation
Transformers
Safetensors
English
German
llama
finetune
dpo
Instruct
augmentation
german
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use fblgit/LUNA-SOLARkrautLM-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fblgit/LUNA-SOLARkrautLM-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fblgit/LUNA-SOLARkrautLM-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fblgit/LUNA-SOLARkrautLM-Instruct") model = AutoModelForCausalLM.from_pretrained("fblgit/LUNA-SOLARkrautLM-Instruct") 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]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use fblgit/LUNA-SOLARkrautLM-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fblgit/LUNA-SOLARkrautLM-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fblgit/LUNA-SOLARkrautLM-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/fblgit/LUNA-SOLARkrautLM-Instruct
- SGLang
How to use fblgit/LUNA-SOLARkrautLM-Instruct 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 "fblgit/LUNA-SOLARkrautLM-Instruct" \ --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": "fblgit/LUNA-SOLARkrautLM-Instruct", "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 "fblgit/LUNA-SOLARkrautLM-Instruct" \ --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": "fblgit/LUNA-SOLARkrautLM-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use fblgit/LUNA-SOLARkrautLM-Instruct with Docker Model Runner:
docker model run hf.co/fblgit/LUNA-SOLARkrautLM-Instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -213,6 +213,48 @@ hf (pretrained=fblgit/LUNA-SOLARkrautLM-Instruct,dtype=float16), gen_kwargs: (),
|
|
| 213 |
| - social_sciences|N/A |none | 5|acc |0.7501|± |0.0684|
|
| 214 |
| - stem |N/A |none | 5|acc |0.5569|± |0.1360|
|
| 215 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 216 |
|
| 217 |
## Disclaimer
|
| 218 |
We must inform users that despite our best efforts in data cleansing, the possibility of uncensored content slipping through cannot be entirely ruled out.
|
|
|
|
| 213 |
| - social_sciences|N/A |none | 5|acc |0.7501|± |0.0684|
|
| 214 |
| - stem |N/A |none | 5|acc |0.5569|± |0.1360|
|
| 215 |
```
|
| 216 |
+
### MT-Bench
|
| 217 |
+
```
|
| 218 |
+
########## Average ##########
|
| 219 |
+
score
|
| 220 |
+
model
|
| 221 |
+
gpt-4 8.990625
|
| 222 |
+
gpt-3.5-turbo 7.943750
|
| 223 |
+
claude-instant-v1 7.905660
|
| 224 |
+
claude-v1 7.900000
|
| 225 |
+
UNA-SOLAR-10.7B-Instruct-v1.0 7.521875
|
| 226 |
+
LUNA-SOLARkrautLM-Instruct 7.462500
|
| 227 |
+
vicuna-33b-v1.3 7.121875
|
| 228 |
+
wizardlm-30b 7.009375
|
| 229 |
+
Llama-2-70b-chat 6.856250
|
| 230 |
+
Llama-2-13b-chat 6.650000
|
| 231 |
+
guanaco-33b 6.528125
|
| 232 |
+
tulu-30b 6.434375
|
| 233 |
+
guanaco-65b 6.409375
|
| 234 |
+
oasst-sft-7-llama-30b 6.409375
|
| 235 |
+
palm-2-chat-bison-001 6.400000
|
| 236 |
+
mpt-30b-chat 6.393750
|
| 237 |
+
vicuna-13b-v1.3 6.387500
|
| 238 |
+
wizardlm-13b 6.353125
|
| 239 |
+
Llama-2-7b-chat 6.268750
|
| 240 |
+
vicuna-7b-v1.3 5.996875
|
| 241 |
+
baize-v2-13b 5.750000
|
| 242 |
+
nous-hermes-13b 5.553459
|
| 243 |
+
mpt-7b-chat 5.459119
|
| 244 |
+
gpt4all-13b-snoozy 5.452830
|
| 245 |
+
koala-13b 5.350000
|
| 246 |
+
mpt-30b-instruct 5.218750
|
| 247 |
+
falcon-40b-instruct 5.168750
|
| 248 |
+
h2ogpt-oasst-open-llama-13b 4.625000
|
| 249 |
+
alpaca-13b 4.531250
|
| 250 |
+
chatglm-6b 4.500000
|
| 251 |
+
oasst-sft-4-pythia-12b 4.318750
|
| 252 |
+
rwkv-4-raven-14b 3.984375
|
| 253 |
+
dolly-v2-12b 3.275000
|
| 254 |
+
fastchat-t5-3b 3.040625
|
| 255 |
+
stablelm-tuned-alpha-7b 2.753125
|
| 256 |
+
llama-13b 2.606250
|
| 257 |
+
```
|
| 258 |
|
| 259 |
## Disclaimer
|
| 260 |
We must inform users that despite our best efforts in data cleansing, the possibility of uncensored content slipping through cannot be entirely ruled out.
|