Instructions to use netcat420/MFANN3bv0.17 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use netcat420/MFANN3bv0.17 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="netcat420/MFANN3bv0.17")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("netcat420/MFANN3bv0.17") model = AutoModelForCausalLM.from_pretrained("netcat420/MFANN3bv0.17") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use netcat420/MFANN3bv0.17 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "netcat420/MFANN3bv0.17" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "netcat420/MFANN3bv0.17", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/netcat420/MFANN3bv0.17
- SGLang
How to use netcat420/MFANN3bv0.17 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 "netcat420/MFANN3bv0.17" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "netcat420/MFANN3bv0.17", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "netcat420/MFANN3bv0.17" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "netcat420/MFANN3bv0.17", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use netcat420/MFANN3bv0.17 with Docker Model Runner:
docker model run hf.co/netcat420/MFANN3bv0.17
Update README.md
#3
by ThiloteE - opened
README.md
CHANGED
|
@@ -8,6 +8,14 @@ language:
|
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
---
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
record low training loss on netcat420/MFANN for the 2.78b model!
|
| 12 |
|
| 13 |
(0.538)
|
|
|
|
| 8 |
pipeline_tag: text-generation
|
| 9 |
---
|
| 10 |
|
| 11 |
+
Prompt template for GPT4All:
|
| 12 |
+
|
| 13 |
+
```
|
| 14 |
+
<|endoftext|>Instruct: %1<|endoftext|>
|
| 15 |
+
<|endoftext|>Output: %2<|endoftext|>
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
|
| 19 |
record low training loss on netcat420/MFANN for the 2.78b model!
|
| 20 |
|
| 21 |
(0.538)
|