Instructions to use souvik18/Roy-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use souvik18/Roy-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="souvik18/Roy-v1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("souvik18/Roy-v1") model = AutoModelForCausalLM.from_pretrained("souvik18/Roy-v1", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use souvik18/Roy-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "souvik18/Roy-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "souvik18/Roy-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/souvik18/Roy-v1
- SGLang
How to use souvik18/Roy-v1 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 "souvik18/Roy-v1" \ --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": "souvik18/Roy-v1", "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 "souvik18/Roy-v1" \ --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": "souvik18/Roy-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use souvik18/Roy-v1 with Docker Model Runner:
docker model run hf.co/souvik18/Roy-v1
Create README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172---license: apache-2.0---# Roy-v1
**Roy** is a personal AI assistant model created and fine-tuned by **Souvik Pramanick**. Designed to be helpful, conversational, and practical for everyday tasks such as learning, coding, problem solving, and general assistance.
---
## Creator
**Founder & Trainer:** **Souvik Pramanick** GitHub: https://github.com/Souvik18p HuggingFace: https://huggingface.co/souvik18
Roy is an independent project built with the vision of creating a smart, friendly, and customizable AI assistant.
---
## What Roy Can Do
Roy is capable of:
- Natural conversation and assistance - Answering general knowledge questions - Solving math and logical problems - Helping with coding and debugging - Writing emails, stories, and content - Explaining concepts in simple language - Brainstorming ideas and learning support
---
## Model Details
- **Model Name:** Roy-v1 - **Parameters:** 7B - **Architecture:** LLaMA-based - **Tensor Type:** F16 - **Format:** Safetensors - **License:** Open for community usage
Base Model: **souvik18/Roy-v1**
---
## Quick Usage
### Using HuggingFace Transformers
```pythonfrom transformers import AutoTokenizer, AutoModelForCausalLMimport torch
MODEL_ID = "souvik18/Roy-v1"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)model = AutoModelForCausalLM.from_pretrained( MODEL_ID, torch_dtype=torch.float16, device_map="auto")
prompt = "[INST] Hello Roy! [/INST]"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(output[0], skip_special_tokens=True))README.mdAdded+72