Text Generation
Transformers
Safetensors
llama
text-generation-inference
8-bit precision
bitsandbytes
Instructions to use APMIC/caigun-lora-model-33B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use APMIC/caigun-lora-model-33B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="APMIC/caigun-lora-model-33B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("APMIC/caigun-lora-model-33B") model = AutoModelForCausalLM.from_pretrained("APMIC/caigun-lora-model-33B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use APMIC/caigun-lora-model-33B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "APMIC/caigun-lora-model-33B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "APMIC/caigun-lora-model-33B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/APMIC/caigun-lora-model-33B
- SGLang
How to use APMIC/caigun-lora-model-33B 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 "APMIC/caigun-lora-model-33B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "APMIC/caigun-lora-model-33B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "APMIC/caigun-lora-model-33B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "APMIC/caigun-lora-model-33B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use APMIC/caigun-lora-model-33B with Docker Model Runner:
docker model run hf.co/APMIC/caigun-lora-model-33B
Commit ·
43789c7
1
Parent(s): 8fa6e1c
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,29 +7,32 @@ This is model finetuned on fake news detection.
|
|
| 7 |
Model Details:
|
| 8 |
|
| 9 |
Model Name: caigun-lora-model-33B
|
|
|
|
| 10 |
Model Version: 1.0
|
|
|
|
| 11 |
Date Created: 2023/11/17
|
|
|
|
| 12 |
Model Overview:
|
| 13 |
|
| 14 |
-
Intended Use:
|
| 15 |
caigun-lora-model-33B is a LLM designed for various purpose.
|
| 16 |
|
| 17 |
-
Training Data:
|
| 18 |
fake news related dataset
|
| 19 |
|
| 20 |
-
Model Architecture:
|
| 21 |
It is based on LLaMA architecture.
|
| 22 |
|
| 23 |
-
Training Procedure:
|
| 24 |
[Stay tuned for updates]
|
| 25 |
|
| 26 |
-
Model Performance:
|
| 27 |
[Stay tuned for updates]
|
| 28 |
|
| 29 |
|
| 30 |
-
Potential Risks:
|
| 31 |
It's important to consider ethical implications related to the use of our model.
|
| 32 |
|
| 33 |
|
| 34 |
-
Updates and Version History:
|
| 35 |
Version 1.0: finetuned on fake news detection.
|
|
|
|
| 7 |
Model Details:
|
| 8 |
|
| 9 |
Model Name: caigun-lora-model-33B
|
| 10 |
+
|
| 11 |
Model Version: 1.0
|
| 12 |
+
|
| 13 |
Date Created: 2023/11/17
|
| 14 |
+
|
| 15 |
Model Overview:
|
| 16 |
|
| 17 |
+
Intended Use:
|
| 18 |
caigun-lora-model-33B is a LLM designed for various purpose.
|
| 19 |
|
| 20 |
+
Training Data:
|
| 21 |
fake news related dataset
|
| 22 |
|
| 23 |
+
Model Architecture:
|
| 24 |
It is based on LLaMA architecture.
|
| 25 |
|
| 26 |
+
Training Procedure:
|
| 27 |
[Stay tuned for updates]
|
| 28 |
|
| 29 |
+
Model Performance:
|
| 30 |
[Stay tuned for updates]
|
| 31 |
|
| 32 |
|
| 33 |
+
Potential Risks:
|
| 34 |
It's important to consider ethical implications related to the use of our model.
|
| 35 |
|
| 36 |
|
| 37 |
+
Updates and Version History:
|
| 38 |
Version 1.0: finetuned on fake news detection.
|