Downloads · 30 days
27
33% of all-time downloads
zhanxu/EcosilkChat-7b
EcosilkChat-7b is a text generation model from zhanxu. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
EcoSilkModel is a fine-tuned language model based on DeepSeek-LLM-7B, specifically designed for sustainable agriculture, silk production, and eco-friendly practices.
Downloads · 30 days
27
33% of all-time downloads
All-time downloads
81
Public
Parameters
6.9B
13.8 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors13.8 GB · 100%
From the Hugging Face model README
EcoSilkModel is a fine-tuned language model based on DeepSeek-LLM-7B, specifically designed for sustainable agriculture, silk production, and eco-friendly practices.
The model excels in the following tasks:
This model is part of the EcoSilk Project, aimed at promoting sustainable development in the silk industry.
The model is suitable for the following scenarios:
The model was fine-tuned on the following datasets:
llama3zh) and English (en)Here are some examples of how to use our model.
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig
model_name = "deepseek-ai/deepseek-llm-7b-chat"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="auto")
model.generation_config = GenerationConfig.from_pretrained(model_name)
model.generation_config.pad_token_id = model.generation_config.eos_token_id
messages = [
{"role": "user", "content": "Who are you?"}
]
input_tensor = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(input_tensor.to(model.device), max_new_tokens=100)
result = tokenizer.decode(outputs[0][input_tensor.shape[1]:], skip_special_tokens=True)
print(result)