Downloads · 30 days
5
12% of all-time downloads
rahul77/llama-2-7b-chat-finetune
llama-2-7b-chat-finetune is a text generation model from rahul77. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This is a fine-tuned version of the LLaMA 2 7B model designed for chat-based tasks. The model has been fine-tuned to improve its performance on generating conversational responses.
Downloads · 30 days
5
12% of all-time downloads
All-time downloads
42
Public
Repo size
13.5 GB
Likes
0
Public
Click a slice to open those files.
.bin13.5 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of the LLaMA 2 7B model designed for chat-based tasks. The model has been fine-tuned to improve its performance on generating conversational responses.
pad_token_id: 0bos_token_id: 1eos_token_id: 2This model supports the following task:
Model Configuration (config.json):
Generation Configuration (generation_config.json):
To use this model for text generation via the Hugging Face API, use the following Python code snippet:
import requests
api_url = "https://api-inference.huggingface.co/models/rahul77/llama-2-7b-chat-finetune"
headers = {
"Authorization": "Bearer YOUR_API_TOKEN", # Replace with your Hugging Face API token
"Content-Type": "application/json"
}
data = {
"inputs": "What is a large language model?",
"parameters": {
"max_length": 50
}
}
response = requests.post(api_url, headers=headers, json=data)
if response.status_code == 200:
print(response.json())
else:
print(f"Error: {response.status_code}")
print(response.json())
---
license: apache-2.0
---