Text Generation
Transformers
Safetensors
English
llama
Sales
FAQ
ECommerce
conversational
text-generation-inference
Instructions to use Alkyema/FAQ_ChatBot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Alkyema/FAQ_ChatBot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Alkyema/FAQ_ChatBot") 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("Alkyema/FAQ_ChatBot") model = AutoModelForCausalLM.from_pretrained("Alkyema/FAQ_ChatBot", 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 Alkyema/FAQ_ChatBot with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Alkyema/FAQ_ChatBot" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Alkyema/FAQ_ChatBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Alkyema/FAQ_ChatBot
- SGLang
How to use Alkyema/FAQ_ChatBot 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 "Alkyema/FAQ_ChatBot" \ --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": "Alkyema/FAQ_ChatBot", "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 "Alkyema/FAQ_ChatBot" \ --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": "Alkyema/FAQ_ChatBot", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Alkyema/FAQ_ChatBot with Docker Model Runner:
docker model run hf.co/Alkyema/FAQ_ChatBot
File size: 2,823 Bytes
e247bdf 7340255 e247bdf 7340255 e247bdf 7340255 e247bdf 7340255 96895e5 e247bdf 7340255 | 1 2 3 4 5 6 7 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 | ---
library_name: transformers
tags:
- Sales
- FAQ
- ECommerce
license: apache-2.0
language:
- en
metrics:
- accuracy
pipeline_tag: text-generation
---
# Model Card for Model ID
# FAQ Chatbot for Online Orders and Website Queries
This model is a large language model (LLM) based on the LLaMA 3 architecture, fine-tuned to handle frequently asked questions (FAQ) related to online orders and website queries. It is designed to provide accurate and helpful responses to common customer inquiries.
## Model Details
- **Model Name:** FAQ Chatbot for Online Orders and Website Queries
- **Architecture:** LLaMA 3
- **Training Data:** This model was trained on a dataset consisting of typical customer queries related to online orders, such as order status, payment issues, returns and refunds, shipping information, and general website navigation.
- **Usage:** The model is intended to be used as a customer support assistant, capable of addressing a wide range of questions about online shopping and website functionality.
## Features
- **Natural Language Understanding:** The model can understand and process natural language input, making it user-friendly for customers.
- **Contextual Responses:** Provides responses that are contextually relevant to the user's query.
- **Scalable Support:** Can handle a high volume of queries simultaneously, improving customer service efficiency.
## Example Queries
Here are some example queries that the model can handle:
1. **Order Status:** "Can you tell me the status of my order #12345?"
2. **Payment Issues:** "I'm having trouble processing my payment. Can you help?"
3. **Returns and Refunds:** "How can I return a product I bought?"
4. **Shipping Information:** "When will my order be delivered?"
5. **Website Navigation:** "How do I find the size chart on your website?"
## How to Use
To use this model, you can integrate it into your customer support system or chatbot framework. Here's a basic example using the Hugging Face `transformers` library:
```python
from transformers import AutoModelForCausalLM, AutoTokenizer
# Load the model and tokenizer
model_name = "your-hugging-face-username/faq-chatbot-online-orders"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)
# Example query
query = "Can you tell me the status of my order #12345?"
# Tokenize the input
inputs = tokenizer(query, return_tensors="pt")
# Generate response
outputs = model.generate(**inputs)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
```python
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
- **Developed by:** Satwik Kishore
- **Model type:** Text Generation
- **Language(s) (NLP):** English
|