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
- 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
#1
by DavidGF - opened
README.md
CHANGED
|
@@ -73,15 +73,13 @@ Our results, with `result < 0.1, %:` being well below 0.9, indicate that our dat
|
|
| 73 |
|
| 74 |
### Prompt Template:
|
| 75 |
```
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
Wie geht es dir momentan? Können wir zusammen etwas interessantes oder hilfreiches erledigen?
|
| 82 |
|
| 83 |
```
|
| 84 |
-
*Prompt Example on Temp 0.5
|
| 85 |
|
| 86 |
```
|
| 87 |
### User:
|
|
@@ -92,7 +90,6 @@ Hi there! I am an AI language model, so I don't have personal feelings or emotio
|
|
| 92 |
How may I assist you today?
|
| 93 |
|
| 94 |
```
|
| 95 |
-
*Prompt Example on Temp 0.5
|
| 96 |
|
| 97 |
## Evaluation
|
| 98 |
```
|
|
@@ -265,11 +262,11 @@ Additionally, it is essential to understand that the licensing of these models d
|
|
| 265 |
If you are interested in customized LLMs for business applications, please get in contact with us via our website or contact us at [Dr. Daryoush Vaziri](mailto:vaziri@vago-solutions.de). We are also grateful for your feedback and suggestions.
|
| 266 |
|
| 267 |
## Collaborations
|
| 268 |
-
We are also keenly seeking support and investment for our startup, VAGO
|
| 269 |
|
| 270 |
-
Juanako.AI
|
| 271 |
|
| 272 |
## Acknowledgement
|
| 273 |
-
Big Hug to VAGO Solutions, we merely used our transformers library on their code and dataset, nothing else. This won't be possible without them, thanks!
|
| 274 |
|
| 275 |
Many thanks to [argilla](https://huggingface.co/datasets/argilla) and [Huggingface](https://huggingface.co) for providing such valuable datasets to the Open-Source community. And of course a big thanks to [upstage](https://huggingface.co/upstage) for providing the open source community with their latest technology!
|
|
|
|
| 73 |
|
| 74 |
### Prompt Template:
|
| 75 |
```
|
| 76 |
+
<|im_start|>system
|
| 77 |
+
Du bist LUNA-SOLARkrautLM, ein großes Sprachmodell, das höflich und kompetent antwortet.<|im_end|>
|
| 78 |
+
<|im_start|>user
|
| 79 |
+
Wie geht es dir?<|im_end|>
|
| 80 |
+
<|im_start|>assistant
|
|
|
|
| 81 |
|
| 82 |
```
|
|
|
|
| 83 |
|
| 84 |
```
|
| 85 |
### User:
|
|
|
|
| 90 |
How may I assist you today?
|
| 91 |
|
| 92 |
```
|
|
|
|
| 93 |
|
| 94 |
## Evaluation
|
| 95 |
```
|
|
|
|
| 262 |
If you are interested in customized LLMs for business applications, please get in contact with us via our website or contact us at [Dr. Daryoush Vaziri](mailto:vaziri@vago-solutions.de). We are also grateful for your feedback and suggestions.
|
| 263 |
|
| 264 |
## Collaborations
|
| 265 |
+
We are also keenly seeking support and investment for our startup, [VAGO Solutions](https://huggingface.co/VAGOsolutions), where we continuously advance the development of robust language models designed to address a diverse range of purposes and requirements. If the prospect of collaboratively navigating future challenges excites you, we warmly invite you to reach out to us.
|
| 266 |
|
| 267 |
+
[Juanako.AI](https://huggingface.co/fblgitis) also seeking support and investment for our startup, we also are open for collaborating with other labs to make awesome models like this one.
|
| 268 |
|
| 269 |
## Acknowledgement
|
| 270 |
+
Big Hug to [VAGO Solutions](https://huggingface.co/VAGOsolutions), we merely used our transformers library on their code and dataset, nothing else. This won't be possible without them, thanks!
|
| 271 |
|
| 272 |
Many thanks to [argilla](https://huggingface.co/datasets/argilla) and [Huggingface](https://huggingface.co) for providing such valuable datasets to the Open-Source community. And of course a big thanks to [upstage](https://huggingface.co/upstage) for providing the open source community with their latest technology!
|