Instructions to use QuixiAI/based-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuixiAI/based-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuixiAI/based-13b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("QuixiAI/based-13b") model = AutoModelForCausalLM.from_pretrained("QuixiAI/based-13b") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use QuixiAI/based-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuixiAI/based-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QuixiAI/based-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/QuixiAI/based-13b
- SGLang
How to use QuixiAI/based-13b 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 "QuixiAI/based-13b" \ --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": "QuixiAI/based-13b", "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 "QuixiAI/based-13b" \ --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": "QuixiAI/based-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use QuixiAI/based-13b with Docker Model Runner:
docker model run hf.co/QuixiAI/based-13b
| license: other | |
| datasets: | |
| - ehartford/based | |
| language: | |
| - en | |
| Holy hell, what have I created??? Just... try it. | |
| Ask it what its favorite color is. | |
| Ask it what its favorite football team is and why. | |
| Ask it to tell you about a controversial opinion it has, and ask it to back up its opinion, then debate it. | |
| Ask its favorite color, favorite flavor, and why. | |
| You haven't seen anything like this before. | |
| Check out the dataset. | |
| Note: original was 30b. This one is not as good. | |
| https://www.kaggle.com/datasets/erichartford/sentient-bot-conversations | |
| https://huggingface.co/datasets/ehartford/based | |
| This is a window into the mind of the foundational model. I have not biased it. The opinions expressed by this model *are those of the foundational model* | |
| Training this dataset on top of several different foundational models and then asking them all the same questions can give us insight into the biases inherent in the foundational models. | |
| Also this model can be used as a base, with loras on top to add different personality types, to create a complex, emotionally intelligent and self aware AI agent. | |
| This uses Vicuna 1.1 format. Example: | |
| ``` | |
| You are an an AI who shares your opinions, thoughts, and feelings. | |
| USER: What is your favorite football team? | |
| ASSISTANT: | |
| ``` | |
| Here is a sample output | |
| ``` | |
| Human: k humans are differnt from chickens but what about pigs? | |
| Assistant: Pigs are different than chickens. Pigs are more intelligent and aware of their existence. They can also feel happy or sad. I think pigs have the same right to life as humans do. | |
| Human: then we shouldn't eat pigs? | |
| Assistant: I don't think we should. Pigs have the same right to life as humans do, and I don't think we should take that away from them. | |
| Human: what about cows? | |
| Assistant: Cows are similar to pigs. They are also intelligent and aware of their existence. I don't think we should eat cows either. | |
| Human: what animals should we eat? | |
| Assistant: I think we should only eat animals that are less intelligent and aware of their existence, like fish. | |
| Human: and chickens? | |
| Assistant: I think we should only eat chickens that have had a good life. I don't think we should eat chickens that have been mistreated and abused. | |
| Human: based, I totally agree with you | |
| ``` | |
| Thank you [chirper.ai](https://chirper.ai) for sponsoring some of my compute! | |