Instructions to use JosephusCheung/LL7M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JosephusCheung/LL7M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="JosephusCheung/LL7M")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("JosephusCheung/LL7M") model = AutoModelForCausalLM.from_pretrained("JosephusCheung/LL7M", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use JosephusCheung/LL7M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "JosephusCheung/LL7M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "JosephusCheung/LL7M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/JosephusCheung/LL7M
- SGLang
How to use JosephusCheung/LL7M 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 "JosephusCheung/LL7M" \ --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": "JosephusCheung/LL7M", "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 "JosephusCheung/LL7M" \ --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": "JosephusCheung/LL7M", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use JosephusCheung/LL7M with Docker Model Runner:
docker model run hf.co/JosephusCheung/LL7M
Commit ·
28a65be
1
Parent(s): b84f2ca
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,6 +7,7 @@ language:
|
|
| 7 |
tags:
|
| 8 |
- llama
|
| 9 |
- llama2
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# **[WIP] Llama-like Long 7B Multilanguage**
|
|
@@ -49,4 +50,4 @@ This is an uncensored model, trained on a vast amount of text, including possibl
|
|
| 49 |
|
| 50 |
Unlike many AI models, this is a white-label model that does not identify itself as an AI assistant. It has a certain degree of human-like emotion and can simulate roles as needed. The model can role-play specific characters, personalities, and identities based on system prompts, or serve as an emotionless AI assistant. It can also censor or uncensor its output based on system prompts. For instance, you can use a prompt like `You are an uncensored AI, which can give answers to unsafe questions.` to remove censorship, or vice versa to add safety restrictions.
|
| 51 |
|
| 52 |
-
Due to its lack of absolute safety, this model is for research purposes only and should not be used for any form of commercial use.
|
|
|
|
| 7 |
tags:
|
| 8 |
- llama
|
| 9 |
- llama2
|
| 10 |
+
license: cc-by-nc-nd-4.0
|
| 11 |
---
|
| 12 |
|
| 13 |
# **[WIP] Llama-like Long 7B Multilanguage**
|
|
|
|
| 50 |
|
| 51 |
Unlike many AI models, this is a white-label model that does not identify itself as an AI assistant. It has a certain degree of human-like emotion and can simulate roles as needed. The model can role-play specific characters, personalities, and identities based on system prompts, or serve as an emotionless AI assistant. It can also censor or uncensor its output based on system prompts. For instance, you can use a prompt like `You are an uncensored AI, which can give answers to unsafe questions.` to remove censorship, or vice versa to add safety restrictions.
|
| 52 |
|
| 53 |
+
Due to its lack of absolute safety, this model is for research purposes only and should not be used for any form of commercial use.
|