Text Generation
Transformers
PyTorch
mistral
finetuned
chatgpt
LLM
openGPT
free LLM
no api key
LLAMA
llama chat
opengpt model
opengpt llm
text-to-text
Text-to-Text
Chatbot
Chat UI
conversational
text-generation-inference
Instructions to use Achyuth4/FlawlessAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Achyuth4/FlawlessAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Achyuth4/FlawlessAI") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, OpenGPT tokenizer = AutoTokenizer.from_pretrained("Achyuth4/FlawlessAI") model = OpenGPT.from_pretrained("Achyuth4/FlawlessAI") 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 Achyuth4/FlawlessAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Achyuth4/FlawlessAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Achyuth4/FlawlessAI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Achyuth4/FlawlessAI
- SGLang
How to use Achyuth4/FlawlessAI 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 "Achyuth4/FlawlessAI" \ --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": "Achyuth4/FlawlessAI", "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 "Achyuth4/FlawlessAI" \ --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": "Achyuth4/FlawlessAI", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Achyuth4/FlawlessAI with Docker Model Runner:
docker model run hf.co/Achyuth4/FlawlessAI
N.Achyuth Reddy commited on
Commit ·
ffefe87
1
Parent(s): 4309cc1
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,13 +3,26 @@ license: apache-2.0
|
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
tags:
|
| 5 |
- finetuned
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
-
# Model Card for
|
| 9 |
|
| 10 |
-
The
|
| 11 |
|
| 12 |
-
For full details of this model please read our [release blog post](https://
|
| 13 |
|
| 14 |
## Instruction format
|
| 15 |
|
|
@@ -29,8 +42,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 29 |
|
| 30 |
device = "cuda" # the device to load the model onto
|
| 31 |
|
| 32 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 33 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 34 |
|
| 35 |
messages = [
|
| 36 |
{"role": "user", "content": "What is your favourite condiment?"},
|
|
|
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
tags:
|
| 5 |
- finetuned
|
| 6 |
+
- chatgpt
|
| 7 |
+
- LLM
|
| 8 |
+
- openGPT
|
| 9 |
+
- free LLM
|
| 10 |
+
- no api key
|
| 11 |
+
- LLAMA
|
| 12 |
+
- llama chat
|
| 13 |
+
- opengpt model
|
| 14 |
+
- opengpt llm
|
| 15 |
+
- text-to-text
|
| 16 |
+
- Text-to-Text
|
| 17 |
+
- Chatbot
|
| 18 |
+
- Chat UI
|
| 19 |
---
|
| 20 |
|
| 21 |
+
# Model Card for OpenGPT-1.0
|
| 22 |
|
| 23 |
+
The OpenGPT-1.0 Large Language Model (LLM) is a instruct fine-tuned version of the [OpenGPT-1.0](https://huggingface.co/AchyuthGamer/OpenGPT) generative text model using a variety of publicly available conversation datasets.
|
| 24 |
|
| 25 |
+
For full details of this model please read our [release blog post](https://huggingface.co/AchyuthGamer/OpenGPT)
|
| 26 |
|
| 27 |
## Instruction format
|
| 28 |
|
|
|
|
| 42 |
|
| 43 |
device = "cuda" # the device to load the model onto
|
| 44 |
|
| 45 |
+
model = AutoModelForCausalLM.from_pretrained("AchyuthGamer/OpenGPT")
|
| 46 |
+
tokenizer = AutoTokenizer.from_pretrained("AchyuthGamer/OpenGPT")
|
| 47 |
|
| 48 |
messages = [
|
| 49 |
{"role": "user", "content": "What is your favourite condiment?"},
|