Text Generation
Transformers
Safetensors
English
llama
climate
conversational
text-generation-inference
Instructions to use eci-io/climategpt-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eci-io/climategpt-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="eci-io/climategpt-13b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("eci-io/climategpt-13b") model = AutoModelForCausalLM.from_pretrained("eci-io/climategpt-13b", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use eci-io/climategpt-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "eci-io/climategpt-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "eci-io/climategpt-13b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/eci-io/climategpt-13b
- SGLang
How to use eci-io/climategpt-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 "eci-io/climategpt-13b" \ --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": "eci-io/climategpt-13b", "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 "eci-io/climategpt-13b" \ --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": "eci-io/climategpt-13b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use eci-io/climategpt-13b with Docker Model Runner:
docker model run hf.co/eci-io/climategpt-13b
climategpt-13b / .integrity /iroh-collection /bafkr4igdbcn4o6nas4fuwbli7nncyyim4odd7capopglzwlmx2ym4gqrom
| {"apptek_climate_v4-all-role.bin":"bafkr4idznttwwi7lxycqp4vsf6cvp7dvbdgk4prksco5chdtbtf75te5ma","apptek_climate_v4-all-role.idx":"bafkr4id3vlltizhxpbeqaf46fgpoiokwbltnqixphwsyjloonp3ne4n7nm","apptek_climate_v4-all-text.bin":"bafkr4id6dzogacc6fywbf2mm3v5vykjc54xpbrcoqv4yjekz7eru3d3sqq","apptek_climate_v4-all-text.idx":"bafkr4id3vlltizhxpbeqaf46fgpoiokwbltnqixphwsyjloonp3ne4n7nm","apptek_general_v1-train-role.bin":"bafkr4ibb57qup2aolqfqv5ifumpuisxnrfjgpvfc2q45b52djgrfftxymy","apptek_general_v1-train-role.idx":"bafkr4iaph3u2xzoupthpqhz43tfzzatnz67ig7vgouin567wg4h52tvez4","apptek_general_v1-train-text.bin":"bafkr4iewo44p7prxwzg7qzxadxm64qd2frba6rpwp3cjvmxz2zgp2gjdbq","apptek_general_v1-train-text.idx":"bafkr4iaph3u2xzoupthpqhz43tfzzatnz67ig7vgouin567wg4h52tvez4","empty_prompt_v1-all-role.bin":"bafkr4iaujqp25vdvadp6hit2g3untpfkhn5hzzgn4kygwb2qqmf3pz55ly","empty_prompt_v1-all-role.idx":"bafkr4ifs3joeh5e6h6vtfa6hhix5w32oj3kefir2a2bw23vhxwtbije3qy","empty_prompt_v1-all-text.bin":"bafkr4iaujqp25vdvadp6hit2g3untpfkhn5hzzgn4kygwb2qqmf3pz55ly","empty_prompt_v1-all-text.idx":"bafkr4ifs3joeh5e6h6vtfa6hhix5w32oj3kefir2a2bw23vhxwtbije3qy","llama_safety_v2-all-role.bin":"bafkr4ihwtaqu7mwdyjt6toz66yhsvdgsaax6427nrvj6tlaimth65tt2v4","llama_safety_v2-all-role.idx":"bafkr4ihkmtha2d5nqeexsrdoedj4mxztxk42amaghxre2xg3g7a46smr7a","llama_safety_v2-all-text.bin":"bafkr4ihwtaqu7mwdyjt6toz66yhsvdgsaax6427nrvj6tlaimth65tt2v4","llama_safety_v2-all-text.idx":"bafkr4ihkmtha2d5nqeexsrdoedj4mxztxk42amaghxre2xg3g7a46smr7a","tulu_cot_v1-all-role.bin":"bafkr4ibasjuzyodd7wnesczhw7y7evtwpk7symc5raptzn47jpf72gbldi","tulu_cot_v1-all-role.idx":"bafkr4ieqt6ncs3uablz4vmidluoqb33gxaruqvo2evqfsffqcfbhcnqyne","tulu_cot_v1-all-text.bin":"bafkr4icr4oj3fvnpomueiuotprsijigqrr6msa6p6soclvk7ou3jqpcqai","tulu_cot_v1-all-text.idx":"bafkr4ieqt6ncs3uablz4vmidluoqb33gxaruqvo2evqfsffqcfbhcnqyne","tulu_flan_v1-all-role.bin":"bafkr4igq3da74fhahkahixicrti2jrk7x4sogl54g3m73gfjojknpf6vum","tulu_flan_v1-all-role.idx":"bafkr4ihhl6lk7mwhmad63fgzuasjqocfnp22dyh5g6mghzcdjj2fbfmtha","tulu_flan_v1-all-text.bin":"bafkr4ihkgmcxktpbhu7i4b6kj4czl7c5zeuolfi5u5ocvagwtzkzasgqba","tulu_flan_v1-all-text.idx":"bafkr4ihhl6lk7mwhmad63fgzuasjqocfnp22dyh5g6mghzcdjj2fbfmtha"} |