Text Generation
Transformers
Safetensors
English
llama
text2text-generation
conversational
text-generation-inference
Instructions to use witfoo/witq-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use witfoo/witq-1.0 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="witfoo/witq-1.0") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("witfoo/witq-1.0") model = AutoModelForCausalLM.from_pretrained("witfoo/witq-1.0", 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use witfoo/witq-1.0 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "witfoo/witq-1.0" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "witfoo/witq-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/witfoo/witq-1.0
- SGLang
How to use witfoo/witq-1.0 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 "witfoo/witq-1.0" \ --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": "witfoo/witq-1.0", "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 "witfoo/witq-1.0" \ --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": "witfoo/witq-1.0", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use witfoo/witq-1.0 with Docker Model Runner:
docker model run hf.co/witfoo/witq-1.0
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
datasets:
|
| 4 |
- witfoo/syslog-to-artifact
|
| 5 |
language:
|
|
@@ -9,15 +9,21 @@ base_model:
|
|
| 9 |
- unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit
|
| 10 |
pipeline_tag: text2text-generation
|
| 11 |
widget:
|
| 12 |
-
- text:
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
---
|
| 22 |
# WitQ 1.0
|
| 23 |
A model built to assist cybersecurity researchers and investigators.
|
|
@@ -1053,4 +1059,4 @@ Finally, we put in place a set of resources including an [output reporting mecha
|
|
| 1053 |
|
| 1054 |
The core values of Llama 3.1 are openness, inclusivity and helpfulness. It is meant to serve everyone, and to work for a wide range of use cases. It is thus designed to be accessible to people across many different backgrounds, experiences and perspectives. Llama 3.1 addresses users and their needs as they are, without insertion unnecessary judgment or normativity, while reflecting the understanding that even content that may appear problematic in some cases can serve valuable purposes in others. It respects the dignity and autonomy of all users, especially in terms of the values of free thought and expression that power innovation and progress.
|
| 1055 |
|
| 1056 |
-
But Llama 3.1 is a new technology, and like any new technology, there are risks associated with its use. Testing conducted to date has not covered, nor could it cover, all scenarios. For these reasons, as with all LLMs, Llama 3.1’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 3.1 models, developers should perform safety testing and tuning tailored to their specific applications of the model. Please refer to available resources including our [Responsible Use Guide](https://llama.meta.com/responsible-use-guide), [Trust and Safety](https://llama.meta.com/trust-and-safety/) solutions, and other [resources](https://llama.meta.com/docs/get-started/) to learn more about responsible development.
|
|
|
|
| 1 |
---
|
| 2 |
+
license: llama3.1
|
| 3 |
datasets:
|
| 4 |
- witfoo/syslog-to-artifact
|
| 5 |
language:
|
|
|
|
| 9 |
- unsloth/Meta-Llama-3.1-8B-Instruct-bnb-4bit
|
| 10 |
pipeline_tag: text2text-generation
|
| 11 |
widget:
|
| 12 |
+
- text: >-
|
| 13 |
+
2 123456789010 eni-1235b8ca123456789 172.31.16.139 172.31.16.21 20641 22 6
|
| 14 |
+
20 4249 1418530010 1418530070 ACCEPT OK
|
| 15 |
+
instruction: Identify this syslog message
|
| 16 |
+
example_title: Syslog Identification
|
| 17 |
+
- text: >-
|
| 18 |
+
2 123456789010 eni-1235b8ca123456789 172.31.16.139 172.31.16.21 20641 22 6
|
| 19 |
+
20 4249 1418530010 1418530070 ACCEPT OK
|
| 20 |
+
instruction: Create a JSON artifact from the message
|
| 21 |
+
example_title: Transform Syslog
|
| 22 |
+
- text: >-
|
| 23 |
+
2 123456789010 eni-1235b8ca123456789 172.31.16.139 172.31.16.21 20641 22 6
|
| 24 |
+
20 4249 1418530010 1418530070 ACCEPT OK
|
| 25 |
+
instruction: Explain this syslog message
|
| 26 |
+
example_title: Explain Syslog in English
|
| 27 |
---
|
| 28 |
# WitQ 1.0
|
| 29 |
A model built to assist cybersecurity researchers and investigators.
|
|
|
|
| 1059 |
|
| 1060 |
The core values of Llama 3.1 are openness, inclusivity and helpfulness. It is meant to serve everyone, and to work for a wide range of use cases. It is thus designed to be accessible to people across many different backgrounds, experiences and perspectives. Llama 3.1 addresses users and their needs as they are, without insertion unnecessary judgment or normativity, while reflecting the understanding that even content that may appear problematic in some cases can serve valuable purposes in others. It respects the dignity and autonomy of all users, especially in terms of the values of free thought and expression that power innovation and progress.
|
| 1061 |
|
| 1062 |
+
But Llama 3.1 is a new technology, and like any new technology, there are risks associated with its use. Testing conducted to date has not covered, nor could it cover, all scenarios. For these reasons, as with all LLMs, Llama 3.1’s potential outputs cannot be predicted in advance, and the model may in some instances produce inaccurate, biased or other objectionable responses to user prompts. Therefore, before deploying any applications of Llama 3.1 models, developers should perform safety testing and tuning tailored to their specific applications of the model. Please refer to available resources including our [Responsible Use Guide](https://llama.meta.com/responsible-use-guide), [Trust and Safety](https://llama.meta.com/trust-and-safety/) solutions, and other [resources](https://llama.meta.com/docs/get-started/) to learn more about responsible development.
|