Instructions to use shigureui/lightnovel_cpt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shigureui/lightnovel_cpt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="shigureui/lightnovel_cpt") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("shigureui/lightnovel_cpt") model = AutoModelForCausalLM.from_pretrained("shigureui/lightnovel_cpt") 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
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use shigureui/lightnovel_cpt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "shigureui/lightnovel_cpt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "shigureui/lightnovel_cpt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/shigureui/lightnovel_cpt
- SGLang
How to use shigureui/lightnovel_cpt 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 "shigureui/lightnovel_cpt" \ --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": "shigureui/lightnovel_cpt", "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 "shigureui/lightnovel_cpt" \ --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": "shigureui/lightnovel_cpt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use shigureui/lightnovel_cpt with Docker Model Runner:
docker model run hf.co/shigureui/lightnovel_cpt
佬可以指路一下猫箱的RP数据是哪个数据集吗?
#1
by Limour - opened
如题,谢谢佬!
没开源,直接爬得
shigureui changed discussion status to closed
猫箱、星野、筑梦岛都下载看了,只有和AI聊天,没有看到可以获取其他用户的聊天记录的地方呀?
批量弄点号,不同agent聊一下自己本地开个llm跟app聊,就行。
哦哦,谢谢佬的解惑,那这样就相当于对app背后的模型进行蒸馏了,确实可能效果不太好,我还以为上面的对话是剧本家先写了大量的剧本呢。
哦哦,谢谢佬的解惑,那这样就相当于对app背后的模型进行蒸馏了,确实可能效果不太好,我还以为上面的对话是剧本家先写了大量的剧本呢。
各家也就CPT是搞了点剧本,后面全靠合成数据的,连用户回复都不能用。
这玩意只看用户回复就是过拟合地狱;晚安大小姐,和只想搞瑟瑟选一个吧。