deepseek-ai / deepseek-llm-7b-base

huggingface.co
Total runs: 23.7K
24-hour runs: -3.1K
7-day runs: -9.6K
30-day runs: -4.6K
Model's Last Updated: November 30 2023
text-generation

Introduction of deepseek-llm-7b-base

Model Details of deepseek-llm-7b-base

DeepSeek Chat

[🏠Homepage] | [🤖 Chat with DeepSeek LLM] | [Discord] | [Wechat(微信)]


1. Introduction of Deepseek LLM

Introducing DeepSeek LLM, an advanced language model comprising 7 billion parameters. It has been trained from scratch on a vast dataset of 2 trillion tokens in both English and Chinese. In order to foster research, we have made DeepSeek LLM 7B/67B Base and DeepSeek LLM 7B/67B Chat open source for the research community.

2. Model Summary

deepseek-llm-7b-base is a 7B parameter model with Multi-Head Attention trained on 2 trillion tokens from scratch.

3. How to Use

Here give some examples of how to use our model.

Text Completion
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, GenerationConfig

model_name = "deepseek-ai/deepseek-llm-7b-base"
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

text = "An attention function can be described as mapping a query and a set of key-value pairs to an output, where the query, keys, values, and output are all vectors. The output is"
inputs = tokenizer(text, return_tensors="pt")
outputs = model.generate(**inputs.to(model.device), max_new_tokens=100)

result = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(result)
4. License

This code repository is licensed under the MIT License. The use of DeepSeek LLM models is subject to the Model License. DeepSeek LLM supports commercial use.

See the LICENSE-MODEL for more details.

5. Contact

If you have any questions, please raise an issue or contact us at [email protected] .

Runs of deepseek-ai deepseek-llm-7b-base on huggingface.co

23.7K
Total runs
-3.1K
24-hour runs
-7.3K
3-day runs
-9.6K
7-day runs
-4.6K
30-day runs

More Information About deepseek-llm-7b-base huggingface.co Model

More deepseek-llm-7b-base license Visit here:

https://choosealicense.com/licenses/deepseek

deepseek-llm-7b-base huggingface.co

deepseek-llm-7b-base huggingface.co is an AI model on huggingface.co that provides deepseek-llm-7b-base's model effect (), which can be used instantly with this deepseek-ai deepseek-llm-7b-base model. huggingface.co supports a free trial of the deepseek-llm-7b-base model, and also provides paid use of the deepseek-llm-7b-base. Support call deepseek-llm-7b-base model through api, including Node.js, Python, http.

deepseek-llm-7b-base huggingface.co Url

https://huggingface.co/deepseek-ai/deepseek-llm-7b-base

deepseek-ai deepseek-llm-7b-base online free

deepseek-llm-7b-base huggingface.co is an online trial and call api platform, which integrates deepseek-llm-7b-base's modeling effects, including api services, and provides a free online trial of deepseek-llm-7b-base, you can try deepseek-llm-7b-base online for free by clicking the link below.

deepseek-ai deepseek-llm-7b-base online free url in huggingface.co:

https://huggingface.co/deepseek-ai/deepseek-llm-7b-base

deepseek-llm-7b-base install

deepseek-llm-7b-base is an open source model from GitHub that offers a free installation service, and any user can find deepseek-llm-7b-base on GitHub to install. At the same time, huggingface.co provides the effect of deepseek-llm-7b-base install, users can directly use deepseek-llm-7b-base installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

deepseek-llm-7b-base install url in huggingface.co:

https://huggingface.co/deepseek-ai/deepseek-llm-7b-base

Url of deepseek-llm-7b-base

deepseek-llm-7b-base huggingface.co Url

Provider of deepseek-llm-7b-base huggingface.co

deepseek-ai
ORGANIZATIONS

Other API from deepseek-ai