Text Generation
Transformers
Safetensors
PyTorch
English
qwen2
Qwen2.5
Prompt_Enhance
7B
Instruct
Promptist-Instruct
text-generation-inference
art
conversational
Instructions to use prithivMLmods/Novaeus-Promptist-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prithivMLmods/Novaeus-Promptist-7B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="prithivMLmods/Novaeus-Promptist-7B-Instruct") 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("prithivMLmods/Novaeus-Promptist-7B-Instruct") model = AutoModelForCausalLM.from_pretrained("prithivMLmods/Novaeus-Promptist-7B-Instruct", 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 prithivMLmods/Novaeus-Promptist-7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "prithivMLmods/Novaeus-Promptist-7B-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": "prithivMLmods/Novaeus-Promptist-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/prithivMLmods/Novaeus-Promptist-7B-Instruct
- SGLang
How to use prithivMLmods/Novaeus-Promptist-7B-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 "prithivMLmods/Novaeus-Promptist-7B-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": "prithivMLmods/Novaeus-Promptist-7B-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 "prithivMLmods/Novaeus-Promptist-7B-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": "prithivMLmods/Novaeus-Promptist-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use prithivMLmods/Novaeus-Promptist-7B-Instruct with Docker Model Runner:
docker model run hf.co/prithivMLmods/Novaeus-Promptist-7B-Instruct
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,4 +20,26 @@ tags:
|
|
| 20 |
- Promptist-Instruct
|
| 21 |
- text-generation-inference
|
| 22 |
- art
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
---
|
|
|
|
| 20 |
- Promptist-Instruct
|
| 21 |
- text-generation-inference
|
| 22 |
- art
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
### Novaeus-Promptist-7B-Instruct Uploaded Model Files:
|
| 26 |
+
|
| 27 |
+
| **File Name [ Uploaded Files ]** | **Size** | **Description** | **Upload Status** |
|
| 28 |
+
|--------------------------------------------|---------------|------------------------------------------|-------------------|
|
| 29 |
+
| `.gitattributes` | 1.57 kB | Git attributes configuration for LFS. | Uploaded |
|
| 30 |
+
| `README.md` | 400 Bytes | Documentation about the model. | Updated |
|
| 31 |
+
| `added_tokens.json` | 657 Bytes | Custom tokens for tokenizer. | Uploaded |
|
| 32 |
+
| `config.json` | 860 Bytes | Configuration for the model. | Uploaded |
|
| 33 |
+
| `generation_config.json` | 281 Bytes | Configuration for text generation. | Uploaded |
|
| 34 |
+
| `merges.txt` | 1.82 MB | Byte-pair encoding (BPE) merge rules. | Uploaded |
|
| 35 |
+
| `pytorch_model-00001-of-00004.bin` | 4.88 GB | Model weights (split part 1). | Uploaded (LFS) |
|
| 36 |
+
| `pytorch_model-00002-of-00004.bin` | 4.93 GB | Model weights (split part 2). | Uploaded (LFS) |
|
| 37 |
+
| `pytorch_model-00003-of-00004.bin` | 4.33 GB | Model weights (split part 3). | Uploaded (LFS) |
|
| 38 |
+
| `pytorch_model-00004-of-00004.bin` | 1.09 GB | Model weights (split part 4). | Uploaded (LFS) |
|
| 39 |
+
| `pytorch_model.bin.index.json` | 28.1 kB | Index file for model weights. | Uploaded |
|
| 40 |
+
| `special_tokens_map.json` | 644 Bytes | Map of special tokens for tokenizer. | Uploaded |
|
| 41 |
+
| `tokenizer.json` | 11.4 MB | Tokenizer data in JSON format. | Uploaded (LFS) |
|
| 42 |
+
| `tokenizer_config.json` | 7.73 kB | Tokenizer configuration file. | Uploaded |
|
| 43 |
+
| `vocab.json` | 2.78 MB | Vocabulary for tokenizer. | Uploaded |
|
| 44 |
+
|
| 45 |
---
|