Instructions to use EssentialAI/rnj-1-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EssentialAI/rnj-1-instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EssentialAI/rnj-1-instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EssentialAI/rnj-1-instruct") model = AutoModelForCausalLM.from_pretrained("EssentialAI/rnj-1-instruct") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use EssentialAI/rnj-1-instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EssentialAI/rnj-1-instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EssentialAI/rnj-1-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EssentialAI/rnj-1-instruct
- SGLang
How to use EssentialAI/rnj-1-instruct 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 "EssentialAI/rnj-1-instruct" \ --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": "EssentialAI/rnj-1-instruct", "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 "EssentialAI/rnj-1-instruct" \ --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": "EssentialAI/rnj-1-instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use EssentialAI/rnj-1-instruct with Docker Model Runner:
docker model run hf.co/EssentialAI/rnj-1-instruct
Add OpenRouter link
Browse files
README.md
CHANGED
|
@@ -13,18 +13,21 @@ library_name: transformers
|
|
| 13 |
<!-- Website -->
|
| 14 |
<a href="https://essential.ai">
|
| 15 |
<img alt="Homepage"
|
|
|
|
| 16 |
src="https://img.shields.io/badge/%F0%9F%8C%90%20Website-essential.ai-4b9fe1?color=4b9fe1&logoColor=white"/>
|
| 17 |
</a>
|
| 18 |
|
| 19 |
<!-- Blog / Research -->
|
| 20 |
<a href="https://www.essential.ai/research/rnj-1">
|
| 21 |
<img alt="Research Blog"
|
|
|
|
| 22 |
src="https://img.shields.io/badge/🧠%20Research-rnj--1-7c5cff?color=7c5cff&logoColor=white"/>
|
| 23 |
</a>
|
| 24 |
|
| 25 |
<!-- HuggingFace -->
|
| 26 |
<a href="https://huggingface.co/collections/EssentialAI/rnj-1">
|
| 27 |
<img alt="Hugging Face"
|
|
|
|
| 28 |
src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-rnj--1-ffc107?color=ffc107&logoColor=white"/>
|
| 29 |
</a>
|
| 30 |
|
|
@@ -33,21 +36,31 @@ library_name: transformers
|
|
| 33 |
<!-- Discord -->
|
| 34 |
<a href="https://discord.gg/VPEqUNg6tR">
|
| 35 |
<img alt="Discord"
|
|
|
|
| 36 |
src="https://img.shields.io/badge/Discord-Essential%20AI-7289da?logo=discord&logoColor=white&color=7289da"/>
|
| 37 |
</a>
|
| 38 |
|
| 39 |
<!-- X / Twitter -->
|
| 40 |
<a href="https://x.com/essential_ai">
|
| 41 |
<img alt="Twitter Follow"
|
|
|
|
| 42 |
src="https://img.shields.io/badge/Twitter-essential__ai-white?logo=x&logoColor=white"/>
|
| 43 |
</a>
|
| 44 |
|
| 45 |
<!-- Together AI -->
|
| 46 |
<a href="https://www.together.ai/models/rnj-1-instruct">
|
| 47 |
<img alt="Together AI"
|
|
|
|
| 48 |
src="https://img.shields.io/badge/⚡%20TogetherAI-rnj--1--instruct-00c2a8?color=00c2a8&logoColor=white"/>
|
| 49 |
</a>
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
<br>
|
| 52 |
</div>
|
| 53 |
|
|
|
|
| 13 |
<!-- Website -->
|
| 14 |
<a href="https://essential.ai">
|
| 15 |
<img alt="Homepage"
|
| 16 |
+
style="vertical-align: middle;"
|
| 17 |
src="https://img.shields.io/badge/%F0%9F%8C%90%20Website-essential.ai-4b9fe1?color=4b9fe1&logoColor=white"/>
|
| 18 |
</a>
|
| 19 |
|
| 20 |
<!-- Blog / Research -->
|
| 21 |
<a href="https://www.essential.ai/research/rnj-1">
|
| 22 |
<img alt="Research Blog"
|
| 23 |
+
style="vertical-align: middle;"
|
| 24 |
src="https://img.shields.io/badge/🧠%20Research-rnj--1-7c5cff?color=7c5cff&logoColor=white"/>
|
| 25 |
</a>
|
| 26 |
|
| 27 |
<!-- HuggingFace -->
|
| 28 |
<a href="https://huggingface.co/collections/EssentialAI/rnj-1">
|
| 29 |
<img alt="Hugging Face"
|
| 30 |
+
style="vertical-align: middle;"
|
| 31 |
src="https://img.shields.io/badge/%F0%9F%A4%97%20Hugging%20Face-rnj--1-ffc107?color=ffc107&logoColor=white"/>
|
| 32 |
</a>
|
| 33 |
|
|
|
|
| 36 |
<!-- Discord -->
|
| 37 |
<a href="https://discord.gg/VPEqUNg6tR">
|
| 38 |
<img alt="Discord"
|
| 39 |
+
style="vertical-align: middle;"
|
| 40 |
src="https://img.shields.io/badge/Discord-Essential%20AI-7289da?logo=discord&logoColor=white&color=7289da"/>
|
| 41 |
</a>
|
| 42 |
|
| 43 |
<!-- X / Twitter -->
|
| 44 |
<a href="https://x.com/essential_ai">
|
| 45 |
<img alt="Twitter Follow"
|
| 46 |
+
style="vertical-align: middle;"
|
| 47 |
src="https://img.shields.io/badge/Twitter-essential__ai-white?logo=x&logoColor=white"/>
|
| 48 |
</a>
|
| 49 |
|
| 50 |
<!-- Together AI -->
|
| 51 |
<a href="https://www.together.ai/models/rnj-1-instruct">
|
| 52 |
<img alt="Together AI"
|
| 53 |
+
style="vertical-align: middle;"
|
| 54 |
src="https://img.shields.io/badge/⚡%20TogetherAI-rnj--1--instruct-00c2a8?color=00c2a8&logoColor=white"/>
|
| 55 |
</a>
|
| 56 |
|
| 57 |
+
<!-- OpenRouter -->
|
| 58 |
+
<a href="https://openrouter.ai/essentialai/rnj-1-instruct">
|
| 59 |
+
<img alt="OpenRouter"
|
| 60 |
+
style="vertical-align: middle;"
|
| 61 |
+
src="https://img.shields.io/badge/%E2%AC%85%20OpenRouter-rnj--1--instruct-1a4b82?logo=openrouter&color=1a4b82&logoColor=white"/>
|
| 62 |
+
</a>
|
| 63 |
+
|
| 64 |
<br>
|
| 65 |
</div>
|
| 66 |
|