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)# 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") 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]:])) - 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
Improve language tag
Browse filesHi! As the model is multilingual, this is a PR to add other languages than English to the language tag to improve the referencing. Note that 29 languages are announced in the README, but only 13 are explicitly listed. I was therefore only able to add these 13 languages.
README.md
CHANGED
|
@@ -1,96 +1,108 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: creativeml-openrail-m
|
| 3 |
-
datasets:
|
| 4 |
-
- prithivMLmods/Prompt-Enhancement-Mini
|
| 5 |
-
- gokaygokay/prompt-enhancement-75k
|
| 6 |
-
- gokaygokay/prompt-enhancer-dataset
|
| 7 |
-
language:
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
-
|
| 15 |
-
-
|
| 16 |
-
-
|
| 17 |
-
-
|
| 18 |
-
-
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
|
| 42 |
-
|
|
| 43 |
-
| `
|
| 44 |
-
| `
|
| 45 |
-
| `
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
---
|
| 61 |
-
### **
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
- **
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
---
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: creativeml-openrail-m
|
| 3 |
+
datasets:
|
| 4 |
+
- prithivMLmods/Prompt-Enhancement-Mini
|
| 5 |
+
- gokaygokay/prompt-enhancement-75k
|
| 6 |
+
- gokaygokay/prompt-enhancer-dataset
|
| 7 |
+
language:
|
| 8 |
+
- zho
|
| 9 |
+
- eng
|
| 10 |
+
- fra
|
| 11 |
+
- spa
|
| 12 |
+
- por
|
| 13 |
+
- deu
|
| 14 |
+
- ita
|
| 15 |
+
- rus
|
| 16 |
+
- jpn
|
| 17 |
+
- kor
|
| 18 |
+
- vie
|
| 19 |
+
- tha
|
| 20 |
+
- ara
|
| 21 |
+
base_model:
|
| 22 |
+
- Qwen/Qwen2.5-7B-Instruct
|
| 23 |
+
pipeline_tag: text-generation
|
| 24 |
+
library_name: transformers
|
| 25 |
+
tags:
|
| 26 |
+
- Qwen2.5
|
| 27 |
+
- Prompt_Enhance
|
| 28 |
+
- 7B
|
| 29 |
+
- Instruct
|
| 30 |
+
- safetensors
|
| 31 |
+
- pytorch
|
| 32 |
+
- Promptist-Instruct
|
| 33 |
+
- text-generation-inference
|
| 34 |
+
- art
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
### Novaeus-Promptist-7B-Instruct Uploaded Model Files
|
| 38 |
+
|
| 39 |
+
The **Novaeus-Promptist-7B-Instruct** is a fine-tuned large language model derived from the **Qwen2.5-7B-Instruct** base model. It is optimized for **prompt enhancement, text generation**, and **instruction-following tasks**, providing high-quality outputs tailored to various applications.
|
| 40 |
+
|
| 41 |
+
| **File Name [ Uploaded Files ]** | **Size** | **Description** | **Upload Status** |
|
| 42 |
+
|--------------------------------------------|---------------|------------------------------------------|-------------------|
|
| 43 |
+
| `.gitattributes` | 1.57 kB | Git attributes configuration for LFS. | Uploaded |
|
| 44 |
+
| `README.md` | 400 Bytes | Documentation about the model. | Updated |
|
| 45 |
+
| `added_tokens.json` | 657 Bytes | Custom tokens for tokenizer. | Uploaded |
|
| 46 |
+
| `config.json` | 860 Bytes | Configuration for the model. | Uploaded |
|
| 47 |
+
| `generation_config.json` | 281 Bytes | Configuration for text generation. | Uploaded |
|
| 48 |
+
| `merges.txt` | 1.82 MB | Byte-pair encoding (BPE) merge rules. | Uploaded |
|
| 49 |
+
| `pytorch_model-00001-of-00004.bin` | 4.88 GB | Model weights (split part 1). | Uploaded (LFS) |
|
| 50 |
+
| `pytorch_model-00002-of-00004.bin` | 4.93 GB | Model weights (split part 2). | Uploaded (LFS) |
|
| 51 |
+
| `pytorch_model-00003-of-00004.bin` | 4.33 GB | Model weights (split part 3). | Uploaded (LFS) |
|
| 52 |
+
| `pytorch_model-00004-of-00004.bin` | 1.09 GB | Model weights (split part 4). | Uploaded (LFS) |
|
| 53 |
+
| `pytorch_model.bin.index.json` | 28.1 kB | Index file for model weights. | Uploaded |
|
| 54 |
+
| `special_tokens_map.json` | 644 Bytes | Map of special tokens for tokenizer. | Uploaded |
|
| 55 |
+
| `tokenizer.json` | 11.4 MB | Tokenizer data in JSON format. | Uploaded (LFS) |
|
| 56 |
+
| `tokenizer_config.json` | 7.73 kB | Tokenizer configuration file. | Uploaded |
|
| 57 |
+
| `vocab.json` | 2.78 MB | Vocabulary for tokenizer. | Uploaded |
|
| 58 |
+
|
| 59 |
+
---
|
| 60 |
+

|
| 61 |
+
### **Key Features:**
|
| 62 |
+
|
| 63 |
+
1. **Prompt Refinement:**
|
| 64 |
+
Designed to enhance input prompts by rephrasing, clarifying, and optimizing for more precise outcomes.
|
| 65 |
+
|
| 66 |
+
2. **Instruction Following:**
|
| 67 |
+
Accurately follows complex user instructions for various generation tasks, including creative writing, summarization, and question answering.
|
| 68 |
+
|
| 69 |
+
3. **Customization and Fine-Tuning:**
|
| 70 |
+
Incorporates datasets specifically curated for prompt optimization, enabling seamless adaptation to specific user needs.
|
| 71 |
+
|
| 72 |
+
---
|
| 73 |
+
### **Training Details:**
|
| 74 |
+
- **Base Model:** [Qwen2.5-7B-Instruct](#)
|
| 75 |
+
- **Datasets Used for Fine-Tuning:**
|
| 76 |
+
- **gokaygokay/prompt-enhancer-dataset:** Focuses on prompt engineering with 17.9k samples.
|
| 77 |
+
- **gokaygokay/prompt-enhancement-75k:** Encompasses a wider array of prompt styles with 73.2k samples.
|
| 78 |
+
- **prithivMLmods/Prompt-Enhancement-Mini:** A compact dataset (1.16k samples) for iterative refinement.
|
| 79 |
+
|
| 80 |
+
---
|
| 81 |
+
### **Capabilities:**
|
| 82 |
+
|
| 83 |
+
- **Prompt Optimization:**
|
| 84 |
+
Automatically refines and enhances user-input prompts for better generation results.
|
| 85 |
+
|
| 86 |
+
- **Instruction-Based Text Generation:**
|
| 87 |
+
Supports diverse tasks, including:
|
| 88 |
+
- Creative writing (stories, poems, scripts).
|
| 89 |
+
- Summaries and paraphrasing.
|
| 90 |
+
- Custom Q&A systems.
|
| 91 |
+
|
| 92 |
+
- **Efficient Fine-Tuning:**
|
| 93 |
+
Adaptable to additional fine-tuning tasks by leveraging the model's existing high-quality instruction-following capabilities.
|
| 94 |
+
|
| 95 |
+
---
|
| 96 |
+
|
| 97 |
+
### **Usage Instructions:**
|
| 98 |
+
|
| 99 |
+
1. **Setup:**
|
| 100 |
+
- Ensure all necessary model files, including shards, tokenizer configurations, and index files, are downloaded and placed in the correct directory.
|
| 101 |
+
|
| 102 |
+
2. **Load Model:**
|
| 103 |
+
Use PyTorch or Hugging Face Transformers to load the model and tokenizer. Ensure `pytorch_model.bin.index.json` is correctly set for efficient shard-based loading.
|
| 104 |
+
|
| 105 |
+
3. **Customize Generation:**
|
| 106 |
+
Adjust parameters in `generation_config.json` to control aspects such as temperature, top-p sampling, and maximum sequence length.
|
| 107 |
+
|
| 108 |
---
|